Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.Dax function: Sameperiodlastyear
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.Dax function: Sameperiodlastyear
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
33 |
User | Count |
---|---|
114 | |
97 | |
75 | |
65 | |
39 |