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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
RMtechm
Frequent Visitor

Compare data with last month as same selected month

Hi All,

I need help on below issue which i am facing as i want to see data comparison in between selected month and same month for last year selected month using slicer. Here i can get selected month data but how to calculate last year data for selected month, as below..

DescriptionActualActual
..Jun-24Jun-23
A429.54406.27
B275.28250.67
C200.80181.86
D67.0761.84
E7.416.97

Thanks in Advance.

1 ACCEPTED SOLUTION
dharmendars007
Super User
Super User

Hello @RMtechm , 

 

Please try the below measure for "Actual Value" and "Actual Value Last Year"

 

Actual value = Actual Value = SUM('YourTable'[YourValueColumn])

 

Actual Value LY =
CALCULATE(
[Actual Value],
SAMEPERIODLASTYEAR('DateTable'[Date]))

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

3 REPLIES 3
dharmendars007
Super User
Super User

Hello @RMtechm , 

 

Please try the below measure for "Actual Value" and "Actual Value Last Year"

 

Actual value = Actual Value = SUM('YourTable'[YourValueColumn])

 

Actual Value LY =
CALCULATE(
[Actual Value],
SAMEPERIODLASTYEAR('DateTable'[Date]))

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Hi @dharmendars007 ,

 

Thank you so much for the perfect solution this is what i exactly want 😊

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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