SSAS : MDX to get total SUM from the start to till date or mdx Cummulative sum

if you want calculate cummulative sum from the starting till date .

Then you need to use

SUM({NULL:[Date].[Hierarchy].currentmember},[Measures].[SIMID])

The above query gives from  from starting SIMID availble to till the end of the date dimension but  to restrict the cummulative value to only from start to latest date then use below query .


iif([Measures].[SIMID]>0,SUM({NULL:[Date].[Hierarchy].currentmember},[Measures].[SIMID]),null)



Comments

Popular posts from this blog

SQL Server MDS : How to Know Actual MDS Table name for Model Entity and Column name for the Attribute

SSIS : Hresult: 0x80004005 Description: "Invalid character value for cast specification".

SSRS : [Teradata Database] 3939 There is a mismatch between the number of parameters specified and the number of parameters required.