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,
I am unable to calculate last year cumulative sum for Dynamic table like with MTD and YTD.
below formula I use for current year and working perfectly.
Hi @Sadr_Hoda
Please try this measure
LY Period MTD/YTD =
SWITCH (
[SelectedPeriod],
1, CALCULATE ( [Total Sales], DATEADD ( 'Calendar'[Date], -1, YEAR ) ),
2, CALCULATE ( [Total Sales], DATESYTD ( DATEADD ( 'Calendar'[Date], -1, YEAR ) ) )
)
In above example, Total Sales is a simple measure with SUM: Total Sales = SUM('Table'[Sales])
Thanks for your advise, however, it is not working.
I am unable to compute cumulative prior period balance.
I have a data from 2016 onwards and want to compare month to month and period to period wise.
Hi @Sadr_Hoda
I may misunderstand your requirement. Can you please provide some dummy data or give some examples to explain what you want? Is this blog close to what you want? Creating a Power BI Chart Comparing Each Year vs Previous Year - Carl de Souza I guess your period could be month or year or something else and is dynamic?
Best Regards,
Jing
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 |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |