MDX Puzzle #5 - Solution

Who is online?  0 guests and 2 members
Home  »  Blogs  »  PatrickLeBlanc  »  MDX Puzzle #5 - Solution
 
0
/5
Avg: 0/5: (0 votes)

Comments (2)

dustinryan
dustinryan said:

I was on vacation last week so I didn't get a chance to post my solution, but here it is:

WITH MEMBER [Measures].[InternetSalesAmountYTD] AS 
	AGGREGATE(
		PERIODSTODATE(
			[Delivery Date].[Calendar].[Calendar Year],[Delivery Date].[Calendar].CurrentMember
			),
		([Measures].[Internet Sales Amount])
		)

SELECT 
	([Delivery Date].[Calendar].[Month].&[2002]&[1]:[Delivery Date].[Calendar].[Month].&[2002]&[12])  ON ROWS,
	
	{[Measures].[InternetSalesAmountYTD],[Measures].[Internet Sales Amount]} ON COLUMNS

FROM [Adventure Works]

 

8/16/2010
 · 
 
by
samikane
samikane said:

Here is the MDX Puzzles index: http://ssas-wiki.com/w/Articles#MDX_Puzzles

2/23/2011
 · 
 
by
Blogs RSS Feed

PatrickLeBlanc's latest blog posts

Blogs RSS Feed

Latest community blog posts