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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
EpicTriffid
Helper IV
Helper IV

Year on Year Difference Problems

Hi there, 

 

I've been working on this problem for a while now, and when I think its solved, it turns out its not.

 

Capture.PNG

 

I'm trying to show Year on Year Differences. You can see above, however, that while the Last Year is right between 15/16 and 16/17, the one between 2016/17 isn't right. I can't work out why. That then expands the problem by throwing off the Vs Last Year measure. 

 

I've been trying to fix the Last Year measure but can't. I've tried using SAMEPERIODLASTYEAR and PARALLELPERIOD but they often give me % in the hundreds. So I'm currently using the below for the Last Year:

 

Last Year = CALCULATE(SUM(KPIs_COMBINED_RESHAPED[Actuals]),FILTER(ALL('Date'), 'Date'[Year Number] = MIN('Date'[Year Number])-1)) 

 

That gives me the figures you see above. "Year Number" is just an indexing system of my academic years. 

 

Any insight? 

5 REPLIES 5
EpicTriffid
Helper IV
Helper IV

Hi @kentyler ,

 

The data is already set up with the Years stacked. 

 

Hi @VipulToshniwal ,

 

I have tried SAMPERIODLASTYEAR but it just comes up with the same result. 

Hi EpicTriffid,

Could you please tell us if your question has been resolved. If so, in order to close the thread, please kindly mark helpful replies as answers. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.

If it didn't solve your problem, you could try to inform me more details information(such as your sample data), then I will help you more correctly.


Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@EpicTriffid 

 

Have you tried DATEADD? something along the lines of:
Measure for last year = CALCULATE([Measure], DATEADD(date[date], -1, YEAR))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @EpicTriffid ,

 

Have you looked at the SAMEPERIODLASTYEAR function? Build a DAX around it. Here is the like to the documentation. 

https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax

 

Please, let me know if the DAX with this function works for you.!

 

Regards,

 

Vipul 

kentyler
Solution Sage
Solution Sage

Your measure refers to a single date field, yet your data has multiple columns, each of which refer to different dates.
Maybe try unpivoting your data so you have the years stacked on top of each other instead of side by side (you will have to add a "year" column) and see if that changes the behavior of your measure.

 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.