Forum Discussion
How do I cumulate this?
Hi,
I am a beginner at DAX and could need some help...
I have created this code:
DISTINCTCOUNT ( Total[ReferencePeriod] ),
FILTER ( Total, Total[ChangeDAX] < 0 )
)
Could someone please help me?
Anonymous ,
Try a new measure on top of this using date table
Cumm = CALCULATE(SUMX(values('Date'[date]), [NrOfNegative]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
Running Total/ Cumulative:
https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42You can also consider Window function
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
2 Replies
- amitchandakSuper User
Anonymous ,
Try a new measure on top of this using date table
Cumm = CALCULATE(SUMX(values('Date'[date]), [NrOfNegative]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
Running Total/ Cumulative:
https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42You can also consider Window function
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
- AnonymousNot applicable
Thank you! I tried your code but switched all to allselected and it worked! 🙂