Interview Preparation mode beta
Funny Facebook Status Funny Facebook Status
Enter your email address

How do I calculate sales for 12 Month to date in MDX, in SSAS?

Nice?Vote!

1 Answer

Nice?Vote!
WITH MEMBER [Measures].[Last 12 Mth Order Count] AS SUM( ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods]).Lag(12): ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods]), [Measures].[Order Count])SELECT [Measures].[Last 12 Mth Order Count] ON 0
FROM [Adventure Works]
answered 1 year ago by R (19,530 points)

Related questions