Good Day.I am very new to MDX and been thrown in the deep end, what I am trying to accomplish is to calculate the age in days of each customer since the customer last purchase date, as well as sum all their purchase history between the last purchase date going back a certain amount of time i.e 12 months or 365 days.I tried something like this but totally stumped. I tried searching the site for an answer but could not find anything similar.with member[measures].[MyCalc]asSUM(EXISTING [Measures].[PurchaseAmount],[Customer].[Last Purchase Date].lag(365):[Customer].[Last Purchase Date])select {[measures].[MyCalc]} on columns,{[Customer].[Display Name].children * [Customer].[Last Purchase Date].children *} on rowsfrom[Purchases]Thank you in advanceScott
↧