Skip to main content
cancel
Showing results for
Search instead for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Helper I

## Calculate the Difference in percentage

how to calculate the difference between current month in the current year and the previous year with the same month in DAX ?

2 ACCEPTED SOLUTIONS
Super User

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

Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Helper III

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

2 REPLIES 2
Helper III

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

Super User

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

Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

## Helpful resources

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors