Hi All,
I have a Date dimension, that has the following attribute and hierarchy.
Date Dimension
- Year
- Quarter
- Month
- Day
- Calendar Hierarchy
I created 2 calculated measures: YTD and MTD for Sales
SUM(YTD([Date].[Calendar].CurrentMember),[Measures].[Sales])
and
SUM(MTD([Date].[Calendar].CurrentMember),[Measures].[Sales])
When browsing it all works fine. but when I use Year and Month attributes, it gives me no result for the Sales MTD because in my MDX script I use the Calendar hierarchy.
My question is, how can I calculate Sales MTD that both hierarchy and attributes can use?
Thanks,