Forum Discussion
simplyfab88
4 years agoNew Member
Cumulative Total based on column from calendar
Hi all, I'm trying to create a measure just like TOTALYTD but instead of quarters I would like to use 4 months' cycles. My calendar table looks like: Month CycleNum 01.01.2021 ...
- 4 years ago
Hi simplyfab88 ,
Try to create a measure like below:
Cum = CALCULATE(SUM('Table (2)'[Sales]),FILTER(ALLEXCEPT('Table (2)','Table (2)'[CycleNum]),'Table (2)'[Month]<=MAX('Table (2)'[Month])))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
V-lianl-msft
Community Support
4 years agoHi simplyfab88 ,
Try to create a measure like below:
Cum = CALCULATE(SUM('Table (2)'[Sales]),FILTER(ALLEXCEPT('Table (2)','Table (2)'[CycleNum]),'Table (2)'[Month]<=MAX('Table (2)'[Month])))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.