Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

MDX for last year values

$
0
0
Hi,I am using SSAS 2005 and trying to create a MDX for the hierarchy Fiscal Period (Year->Quarter->Month->Day). The user will be selecting multiple dates. I have this MDX below but I am getting an error message 'The MDX function CURRENTMEMBER failed because the coordinate for the attribute Fiscal Period.Day contains a set'((existing [Fiscal Period].[Fiscal Period Hierarchy].[Day],{Parallelperiod([Fiscal Period].[Fiscal Period Hierarchy].[Year],1,[Fiscal Period].[Fiscal Period Hierarchy].currentmember)}),[Measures].[Quantity])I also tried with Aggregate(Generate followed by the expression above but did not work.Your help would be appreciated. Thank you.Regards,Uma

Viewing all articles
Browse latest Browse all 1341

Trending Articles