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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Khalefa
Helper I
Helper I

Forecast WOW and change rate in different versions

Hi there

I just need some help in creating two measures ( WOW forecast per each forecast version,  change rate% for the same week in different forecast version

 

Statement

 On a weekly basis, I receive a forecast version with the upcoming 12 weeks and for the next week, I receive another version of 12 weeks but we drop the oldest week and add a new week to that version, etc.

Support needed

1- create a dax to calculate the previous week's forecast &WOW%  ( but within the same version)

2- Create a nother dax to calculate the change rate for the same week but in the different versions

Example

If week 46 repeats in 3 versions ( v-43 , V-44, V-45,V-46 ) i need to know the change rate trend line :

- (Week 46 in V-44  -  Week 46 in V-43 ) / Week 46 in V-43 

-Then  (Week 46 in V-45  -  Week 46 in V-44 ) / Week 46 in V-44  etc.

 

3- I have a date table connected to the fact table as well ( ISO week based )

4- As you may notice that the weeks forecast repeat in differrent versions, so do you see that keep them in one fact table or create a dim table for the week version? if so does this will cause any issue with the calendar date interms of filter and any other issues?

 

 

Sample of Data

Week versionWeekforecast
V-W43W435648
V-W43W449742
V-W43W459631
V-W43W469571
V-W43W475029
V-W43W486744
V-W43W499652
V-W43W505577
V-W43W515597
V-W43W524861
V-W43W13716
V-W43W27869
V-W44W447251
V-W44W454505
V-W44W468263
V-W44W473254
V-W44W484467
V-W44W494962
V-W44W508317
V-W44W513922
V-W44W528128
V-W44W17376
V-W44W26125
V-W44W34566
V-W45W44292
V-W45W464148
V-W45W473678
V-W45W485069
V-W45W498275
V-W45W509874
V-W45W514458
V-W45W527879
V-W45W15388
V-W45W27319
V-W45W38500
V-W45W49172
V-W45W57613

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Khalefa , with help from week rank on week start date or year week you can create week measures

 

Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)
OR
Week Rank RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format
WeekDay = weekday([Date])

 

 

These measures can help
This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))

 

Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

 

2nd Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-2))

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Khalefa , with help from week rank on week start date or year week you can create week measures

 

Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)
OR
Week Rank RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format
WeekDay = weekday([Date])

 

 

These measures can help
This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))

 

Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

 

2nd Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-2))

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  thanks, IS it possible to show me an example of the data set I shared by creating the approach to answer my questions? would be really appreciated

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.