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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bryantmikdbi
Frequent Visitor

Measure for LY sales based on another column.

Sorry for the bad subject name but not sure how to describe.  I'll try to give a simplistic example of what I need to do.

ItemItem LYYearSales
Apple1Orange1202310
Grape1Banana1202315
Orange1 202220
Banana1 202225

 

I currently have a powerpivot table that has Item and a TY Sales measure and an LY Sales measure.  I want the LY measure to be based off the Item LY data but display with the Item.  For example, I'd like the above for Apple1 to have a TY value (2023) value of 10 but have an LY (2022) value of 20.  

 

Is this possible?

 

Thanks!

1 REPLY 1
wdx223_Daniel
Super User
Super User

i do not get your point, just guess

wdx223_Daniel_0-1675909935716.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.