dbTalk Databases Forums  

Detect customer pattern

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Detect customer pattern in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bhorwatt
 
Posts: n/a

Default Detect customer pattern - 03-04-2005 , 09:15 AM






I need to write an MDX statement to detect a customer pattern over 4 years.
If they signed up last year for the first time and renewed this year, then
they are a first time renewal, if they signed up 2 years ago and kept
renewing last year and this year, then they are a multi-year renewal, if they
skipped last year but renewed again this year then they are a Lapsed Renewal,
and so forth. This would be easy if you could put an "and" in an iif
statement, but I haven't seen any examples of that. What other MDX functions
should I investigate to accomplish this task?

Reply With Quote
  #2  
Old   
Jim_OLAP
 
Posts: n/a

Default RE: Detect customer pattern - 03-04-2005 , 02:39 PM







Look into the GENERATE function; and if you don't have it -- get "MDX
solutions" by George Spofford -- he does an excellent job of shedding some
light on the esoteric nature of MDX.

HTH

Jim


"bhorwatt" wrote:

Quote:
I need to write an MDX statement to detect a customer pattern over 4 years.
If they signed up last year for the first time and renewed this year, then
they are a first time renewal, if they signed up 2 years ago and kept
renewing last year and this year, then they are a multi-year renewal, if they
skipped last year but renewed again this year then they are a Lapsed Renewal,
and so forth. This would be easy if you could put an "and" in an iif
statement, but I haven't seen any examples of that. What other MDX functions
should I investigate to accomplish this task?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.