Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 | 1 | |
| 01.02.2021 | 1 | |
| 01.03.2021 | 1 | |
| 01.04.2021 | 1 | |
| 01.05.2021 | 2 | |
| 01.06.2021 | 2 | |
| 01.07.2021 | 2 | |
| 01.08.2021 | 2 | |
| 01.09.2021 | 3 | |
| 01.10.2021 | 3 | |
| 01.11.2021 | 3 | |
| 01.12.2021 | 3 |
What I want to achieve:
| CycleNum | Month | Sales | CumulativeSales | |||
| 1 | 01.01.2021 | 10 | 10 | |||
| 1 | 01.02.2021 | 15 | 25 | |||
| 1 | 01.03.2021 | 10 | 35 | |||
| 1 | 01.04.2021 | 5 | 40 | |||
| 2 | 01.05.2021 | 5 | 5 | |||
| 2 | 01.06.2021 | 5 | 10 | |||
| 2 | 01.07.2021 | 10 | 20 | |||
| 2 | 01.08.2021 | 10 | 30 | |||
| 3 | 01.09.2021 | 10 | 10 | |||
| 3 | 01.10.2021 | 10 | 20 | |||
| 3 | 01.11.2021 | 20 | 40 | |||
| 3 | 01.12.2021 | 10 | 50 |
Thank you in advance for any tips!
Solved! Go to Solution.
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.
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.
@simplyfab88 You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |