This is how I am creating my moving totals as columns in my cube:
MATTY (Moving Annual Total This Year)
SUM ( { [Time Period].[Month].CURRENTMEMBER.Lag(12) : [Time Period].[Month].CURRENTMEMBER }, [Measures].[MeasureColumnName])
MATLY (Moving Annual Total Last Year)
SUM ( { [Time Period].[Month].CURRENTMEMBER.Lag(24) : [Time Period].[Month].CURRENTMEMBER.Lag(12) }, [Measures].[MeasureColumnName])
How do I do the following?
YTDTY (Year To Date This Year)
YTDLY (Year To Date Last Year - up to same date as today)