Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
how to calculate the difference between current month in the current year and the previous year with the same month in DAX ?
Solved! Go to Solution.
Hey @HishamAT ,
I recommend reading this article: https://www.daxpatterns.com/time-patterns/
This article contains almost everything what you need to know about time/date calculations using DAX.
Hopefully, this gets you started.
Regards,
Tom
You can use the Dax function: Sameperiodlastyear to achieve this. Though the image is not showing the difference between a monthly value (on two given years), that can be done with a simple formula. (Diff = This year value - last year value). Hope this helps.
You can use the Dax function: Sameperiodlastyear to achieve this. Though the image is not showing the difference between a monthly value (on two given years), that can be done with a simple formula. (Diff = This year value - last year value). Hope this helps.
Hey @HishamAT ,
I recommend reading this article: https://www.daxpatterns.com/time-patterns/
This article contains almost everything what you need to know about time/date calculations using DAX.
Hopefully, this gets you started.
Regards,
Tom
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
107 | |
98 | |
39 | |
34 |
User | Count |
---|---|
151 | |
122 | |
76 | |
74 | |
50 |