This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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...
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.