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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.