Forum Discussion
Accumulative Running Total
- 5 years ago
Hi Zaky ,
Do you want to calculate the cumulative value for the whole year or recalculate the cumulative value from the beginning of each month?
You can refer the following measures,
Accumulative1 = CALCULATE([Your measure],FILTER(ALLSELECTED('Date'),'Date'[Date]<=MAX('Date'[Date])))Accumulative2 = CALCULATE([Your measure],FILTER(ALLSELECTED('Date'),'Date'[Date]<=MAX('Date'[Date])&&'Date'[Month name]=MAX('Date'[Month name])))If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Zaky , Try option one of the two
Cumm = CALCULATE(SUM(Data2020[Count of return]),filter(allselected(Data2020),Data2020[Start of week] <=max(Data2020[Start of week])))
or
Cumm = CALCULATE(SUM(Data2020[Count of return]),filter(allselected(Data2020),Data2020[Start of week] <=max(Data2020[Start of week]) &&
Data2020[Status] && max(Data2020[Status]) ))