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

SSIS :Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done

SSIS Error : Object is not an ADODB.RecordSet or an ADODB.Record + Solution

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