Forum Discussion
Running total
- 6 years ago
if you use allselected it will take the selected dates , you can use all or datestyd as per need
Cumul = CALCULATE(SUM(Demand[DemandQt]);FILTER(ALL(demand);Demand[Sales Date]<=max(Demand[Sales Date])))
Cumul = CALCULATE(SUM(Demand[DemandQt]);datesytd('Date'[Date])
Cumul = CALCULATE(SUM(Demand[DemandQt]);datesytd('Date'[Date],"1/31")// force year from Feb
if you use allselected it will take the selected dates , you can use all or datestyd as per need
Cumul = CALCULATE(SUM(Demand[DemandQt]);FILTER(ALL(demand);Demand[Sales Date]<=max(Demand[Sales Date])))
Cumul = CALCULATE(SUM(Demand[DemandQt]);datesytd('Date'[Date])
Cumul = CALCULATE(SUM(Demand[DemandQt]);datesytd('Date'[Date],"1/31")// force year from Feb
- FZOU6 years agoHelper IV
amitchandak thank you very much for your fast response, it work,i'm still confused with ALL and ALL selected