Time dimension have hierarchies:
- Year – month – date
- Year – week – date
- Year - month
I query them so:
LASTPERIODS( -12, StrToMember("[Time].[Year - Week - Date].[Week].&[" + Format(now(), "yyyy-MM-" + "01T00:00:00") + "]"))
returns null
LASTPERIODS( -12, StrToMember("[Time].[Year - Month].[Month].&[" + Format(now(), "yyyy-MM-" + "01T00:00:00") + "]"))
returns future 12 months
If i query like this:
select non empty([Time].[Year - Week - Date].[Week].members) on 0
it will give me the week members..
Am I missing some parameter?