I have a Dimension [Time]
on my cube. I have the following properties on my time dimension.
- Date
&[2015/12/25]
- Month
&[2015/12]
- Year
&[2015]
- Week
&[2015wk52]
Arranged into 2 hierarchies.
[Time].[Y - M - D]
- Year
- Month
- Date
and
[Time].[Y - WK]
- Year
- Week
- Date
I also created a measure
[Measures].[Foo YTD] AS
AGGREGATE(YTD(), [Measures].[Foo])
This seems to work great when I use the Y M D
dimension in excel. But when I use the Y WK
hierarchy, all my weeks return the same data.
What am I doing wrong?
My attribute relations should be correctly setup I think.
YTD
function set to type year in SSAS ? If it is not typed correctly in SSAS then this function will not work. – whytheq