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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I am trying to figure out how to calculate a dynamic year on year calculation. I am using the following calculation options:
These calculations are indeed dynamic, a user can select a different period by using a slicer which is a dropdown. Here the user can select another year, week or whatever they want. But the problem is that it is always a 1 year comparison.
I want to create another dropdown slicer where the user can select a year which then the calculations use for the comparison. So for example:
I have seen this article which is really usefull and does a bit of what I want to create: Dax Pattersn | Comparing different time periods . But I also want to use the date (year/month/week) on the x axis. Which is not possible with this solution. I have the exact same setup as which is shown in the article.
Please could someone help me out with this? If you need more information please let me know.
@Anonymous , In this case, use date month and year from the fact table, instead of date table.
Also, if one table is independent and another on is joined, you should be able to use date table
How to use two Date/Period slicers:https://www.youtube.com/watch?v=WSeZr_-MiTg
Hi @amitchandak ,
Thanks for your reply. I am sorry but I forgot to mention that, in my fact table, I only use a DateKey which has many to one connection with the Date table.
Is it then also possible to use the solutions displayed in the YouTube video?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!