Hi
I am not trained in MDX and I struggle to get my head around the syntax.
I also posted this on the general OLAP forum, before I remembered this one!
We have a reporting need, out of a cube in MS Analysis Manager, to show the months Jan to Dec as columns. For the measure concerned we need to show the monthly value (no problem) and also the rolling 12 month total up to that month. i.e. for Jan this year the total from Feb 04 to Jan 05, for Feb this year the total of March 04 to Feb 05 etc across the page.
I have found a statement for a moving average which is close, but it assumes you start at the beginning of each year i.e. it doesn't include the last periods of the preceding year when working with the early periods of the current year, so Jan just has Jan's figure, Feb is the average of Jan and Feb, when it should be including Nov &/or Dec of the previous year. I need to cross the year end and go back to a relative period in the preceding year.
I suspect it needs the use of the parallelperiod function, but I can't work it out.
I suspect some intelligent being out there has already done this. Can anyone help?
Thanks in advance,
Steve
40 million lemmings can't be wrong........can they?
I am not trained in MDX and I struggle to get my head around the syntax.
I also posted this on the general OLAP forum, before I remembered this one!
We have a reporting need, out of a cube in MS Analysis Manager, to show the months Jan to Dec as columns. For the measure concerned we need to show the monthly value (no problem) and also the rolling 12 month total up to that month. i.e. for Jan this year the total from Feb 04 to Jan 05, for Feb this year the total of March 04 to Feb 05 etc across the page.
I have found a statement for a moving average which is close, but it assumes you start at the beginning of each year i.e. it doesn't include the last periods of the preceding year when working with the early periods of the current year, so Jan just has Jan's figure, Feb is the average of Jan and Feb, when it should be including Nov &/or Dec of the previous year. I need to cross the year end and go back to a relative period in the preceding year.
I suspect it needs the use of the parallelperiod function, but I can't work it out.
I suspect some intelligent being out there has already done this. Can anyone help?
Thanks in advance,
Steve
40 million lemmings can't be wrong........can they?