MDX Top 10 high order value customers that did not order in last 6 months
-
Wednesday, September 19, 2012 4:27 PM
Hi All, Need help with finding top 10 high value customers that are idle for the last 6 months i.e no orders created. I am trying to use topcount and parallelperiod, but with no luck. Can anyone show how this can be achieved using sets on Adventure Works?? These customers should dynamically change depending on date used for slicing.
All Replies
-
Tuesday, September 25, 2012 1:50 AMModerator
Hi sap9955,
Please refer to the following MDX statement:
With Set [CurrentMonth] as
{[Date].[Calendar].[Month].&[2002]&[12]}SELECT [Measures].[Reseller Sales Amount] ON 0,
TopCount
({[Geography].[Geography].[City].Members
* LastPeriods(6, [CurrentMonth].item(0))}
, 10
, [Measures].[Reseller Sales Amount]
) ON 1
FROM [Adventure Works]For more information about TopCount, please see:
http://technet.microsoft.com/en-us/library/ms144792.aspxRegards,
Bin Long
TechNet Community Support
- Edited by Elvis LongMicrosoft Contingent Staff, Moderator Tuesday, September 25, 2012 1:57 AM
- Marked As Answer by Elvis LongMicrosoft Contingent Staff, Moderator Friday, October 05, 2012 1:27 AM
- Unmarked As Answer by sap9955 Thursday, October 11, 2012 6:38 AM

