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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
KRISH80
Helper II
Helper II

Calculate Same Period Last Year and Same Period Last Month

Hi All,

 

Can you kindly help me with the DAX to calculate wins for Same Period Last Year and Same Period Last Month ?

My data resides in 2 talbles. Last Year Data in table "Historical Data" and This Years Data in "Funnel". I do have a Dynamic calendar in my power bi report.

 

Thanks in advance !

Krishna

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @KRISH80 ,

 

For Same Period Last Year use the following DAX:

https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax

 

For same period last month, refer the following post:

https://community.powerbi.com/t5/Desktop/Compare-data-with-previous-period-last-month/td-p/90426

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

1 REPLY 1
Pragati11
Super User
Super User

Hi @KRISH80 ,

 

For Same Period Last Year use the following DAX:

https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax

 

For same period last month, refer the following post:

https://community.powerbi.com/t5/Desktop/Compare-data-with-previous-period-last-month/td-p/90426

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.