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

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces