sql server 2012 - Parallel Period give wrong values by using Calculated Member -


by using below mdx

with    member parallel_period      sum     (       (existing          [timehierarchy].[hierarchy].[month].members)      ,(         parallelperiod         (           [timehierarchy].[hierarchy].[year]          ,1          ,[timehierarchy].[hierarchy].currentmember         )        ,[measures].[sales value]       )     )  select    non empty      {       [measures].[lastyearsales]      ,[measures].[sales value]      ,parallel_period     } on columns [reportive]    {     [timehierarchy].[hierarchy].[month].&[201612]    ,[timehierarchy].[hierarchy].[month].&[201611]   }; 

it returns value (115397005) right, when put in calculated member gives me wrong values advice?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -