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

YOY by Weekending date

Hi,

 

I am struggling to figure out how to create a YOY based off weekending date. I 3 tables 2018 revenue, 2019 revenue, and a dates table. I have calculated the weekending dates in my dates table and they correspond with the W/E dates in both of my revenue tables. 

 

My revenue tables consist of 

 

Par year | Region | Weekend date | Week Number | Revenue

 

My issue is that the weekending dates are different betweeen the two years I am trying to compare (18/19). I am looking for advice on how to equalize the dates so I can get a true year over year by weekending date. 

 

Any help is greatly appreciated. 

1 REPLY 1
Anonymous
Not applicable

If you have a "week of year" number in your dates table, you could do something like this:

Revenue YoY = 
var __WeekOfYear = MAX('Date'[WeekOfYear])
var __ThisYearRevenue = CALCULATE(SUM('2019 Revenue'[Revenue])
var __LastYearRevenue = CALCULATE(SUM('2018 Revenue'[Revenue])
return __ThisYearRevenue - __LastYearRevenue 

Hope this helps,

Nathan

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.