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
papuzu
Helper II
Helper II

Last year data calc

hello there 

there is no way I'm able to calculate Last Year (or Previous Year data) on a table I'm putting here as example 

 

I'm either following the MTD approach or the DATADD criterion to move period backwards when selecting timeframe of the sum but none of them working 

What am I doing wrong ? 

here is the link with .pbix file 

https://www.dropbox.com/s/hulu6owt4ikfktc/LastYear.pbix?dl=0

 

Thanks for your help,

cheers, 

p

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Use This Measure in your file.

calculate(CALCULATE([Sales MTD],DATEADD(Foglio1[Date],-1,YEAR),ALLEXCEPT(Foglio1,Foglio1[Date])))

View solution in original post

3 REPLIES 3
papuzu
Helper II
Helper II

Hello , there is a problem 

https://www.dropbox.com/s/hulu6owt4ikfktc/LastYear.pbix?dl=0

I have just added a cluster to better represents sales and PY Sales measure repeat same figures all rows. What is wrong ? 

Thanks 

papuzu
Helper II
Helper II

https://www.dropbox.com/s/hulu6owt4ikfktc/LastYear.pbix?dl=0

Hello

adding a cluster on table section all figures got repeated with no sense. What am I missing out ? 

 

Thanks 

 

Anonymous
Not applicable

Use This Measure in your file.

calculate(CALCULATE([Sales MTD],DATEADD(Foglio1[Date],-1,YEAR),ALLEXCEPT(Foglio1,Foglio1[Date])))

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.