Forum Discussion
Anonymous
4 years agoNot applicable
Cumulative Sum - Dax Query
Hello. I am trying to create a chart that shows the Cumulative sum of Apps Created over time. How can I do it with Dax query ? So far, I created the below chart which gives the Count of Ap...
- 4 years ago
Hi Anonymous
PLease tryCumulative Sum = VAR CurrentDtate = MAX ( 'App'[admin_appcreatedon] ) RETURN CALCULATE ( DISTINCTCOUNT ( 'App'[admin_appid] ), 'App'[admin_appcreatedon] <= CurrentDtate, 'App'[admin_appdeleted] = "True", ALL ( 'App' ) )
tamerj1
4 years agoCommunity Champion
HI Anonymous
PLease try
Cumulative Sum =
VAR CurrentDate =
MAX ( 'App'[admin_appcreatedon] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'App'[admin_appid] ),
'App'[admin_appcreatedon] <= CurrentDate,
ALL ( 'App' )
)
- Anonymous4 years agoNot applicable
Hello tamerj1 ,
Thank you for responding. I did try the code, but something is not matching with Values.
How to exclude values from Table 'App' where admin_appdeleted is equal to true from the below code ?
Cumulative Sum = VAR CurrentDtate = MAX ( 'App'[admin_appcreatedon] ) RETURN CALCULATE ( DISTINCTCOUNT ( 'App'[admin_appid] ), 'App'[admin_appcreatedon] <= CurrentDtate, ALL ( 'App' ) )- tamerj14 years agoCommunity Champion
Hi Anonymous
PLease tryCumulative Sum = VAR CurrentDtate = MAX ( 'App'[admin_appcreatedon] ) RETURN CALCULATE ( DISTINCTCOUNT ( 'App'[admin_appid] ), 'App'[admin_appcreatedon] <= CurrentDtate, 'App'[admin_appdeleted] = "True", ALL ( 'App' ) )- Anonymous4 years agoNot applicable
Hello tamerj1 , thank you for the help. It did help me a lot.