I need to calculate a percentage movement between 2 periods. I'm trying to use the following code:
WITH MEMBER [Measures].[Gross Sales Weekly % Movement]
AS ({[Calendar].[YMWD].[Week No], [Measures].[Gross Sales]}
-
{ PARALLELPERIOD( [Calendar].[YMWD].[Week No],1,[Calendar].[YMWD].[Week No].currentmember), [Measures].[Gross Sales]})
/
{ PARALLELPERIOD( [Calendar].[YMWD].[Week No],1,[Calendar].[YMWD].[Week No].currentmember), [Measures].[Gross Sales]}
I keep getting error messages and no matter what variations on a theme I try I can't get it right.
Should I be using parallelperiod at all?
Any help greatly appreciated.
'The world isn't round - it's bent!' Spike Milligan
WITH MEMBER [Measures].[Gross Sales Weekly % Movement]
AS ({[Calendar].[YMWD].[Week No], [Measures].[Gross Sales]}
-
{ PARALLELPERIOD( [Calendar].[YMWD].[Week No],1,[Calendar].[YMWD].[Week No].currentmember), [Measures].[Gross Sales]})
/
{ PARALLELPERIOD( [Calendar].[YMWD].[Week No],1,[Calendar].[YMWD].[Week No].currentmember), [Measures].[Gross Sales]}
I keep getting error messages and no matter what variations on a theme I try I can't get it right.
Should I be using parallelperiod at all?
Any help greatly appreciated.
'The world isn't round - it's bent!' Spike Milligan