This is similar to a question posted a few lines below, but I can't figure it out.
I have a time dimension wich is just Yearerod.
The financial data is stored as a period figure.
I need to create YTD figures up to the current period being looked at. I have used the sum function and arrived at this.
Sum([Periods].[Year].Members)
However, this returns a year to date for all periods processed and populated in the cube at this point in time, so for a past year I get the annual figure.
I tried to amend it to calculate a YTD figure up to and including the period under review and ended up with
Sum([Periods].[Year].[Periods].[Month].Dimension.CurrentMember)
But it doesn't like this.
My only exposure to MDX education was 1 hour in a 1 week OLAP course, so I expect I have made a silly and obvious error (to someone who knows what to do).
Any help would be greatly appreciated, as the only other option seems to be to create a number of specific calculated members, one for each period in the cube. I'm sure there must be a better way than that!
I have a time dimension wich is just Yearerod.
The financial data is stored as a period figure.
I need to create YTD figures up to the current period being looked at. I have used the sum function and arrived at this.
Sum([Periods].[Year].Members)
However, this returns a year to date for all periods processed and populated in the cube at this point in time, so for a past year I get the annual figure.
I tried to amend it to calculate a YTD figure up to and including the period under review and ended up with
Sum([Periods].[Year].[Periods].[Month].Dimension.CurrentMember)
But it doesn't like this.
My only exposure to MDX education was 1 hour in a 1 week OLAP course, so I expect I have made a silly and obvious error (to someone who knows what to do).
Any help would be greatly appreciated, as the only other option seems to be to create a number of specific calculated members, one for each period in the cube. I'm sure there must be a better way than that!