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
Anonymous
Not applicable

SAMEPERIODLASTYEAR does not work whith different categories

Hi!

I try to learn Power BI, but I have one issue for the dashboard I created.

When I want to compare the total sales for all sales channels/categories the correct LY data is shown. When I press the one of the sale categories the LY data is not displaying anything and mess up all the data (Tom)=Empty. What can be wrong?

Without filter

https://imgur.com/a/g3w5dNm

With filter
 
The sales LY formula I use
Sales LY = CALCULATE([Sales XXX];SAMEPERIODLASTYEAR('Date'[Date] )) 
 
What can be wrong? Please help:)
1 REPLY 1
RobbeVL
Impactful Individual
Impactful Individual

Hi! You shared the same screenshot twice! 🙂 and did you use the same DateDim in the visual als in the measure ? Robbe

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.