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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi I need to replicate the WIP weeks formula in Powerbi
Can anyone please advise how I would go about this?
Thank you in advance
Solved! Go to Solution.
Hi @KG1 ,
Please check this measure
Measure =
VAR _3months =
DATESINPERIOD ( 'Table'[Year Month], MAX ( 'Table'[Year Month] ), -3, MONTH )
VAR _sum1 =
CALCULATE ( SUM ( 'Table'[Value] ), _3months )
VAR _sum2 =
CALCULATE ( SUM ( 'Table'[Turnover] ), _3months )
RETURN
_sum1 * SUM ( 'Table'[WIP] ) / _sum2
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @KG1 ,
Please check this measure
Measure =
VAR _3months =
DATESINPERIOD ( 'Table'[Year Month], MAX ( 'Table'[Year Month] ), -3, MONTH )
VAR _sum1 =
CALCULATE ( SUM ( 'Table'[Value] ), _3months )
VAR _sum2 =
CALCULATE ( SUM ( 'Table'[Turnover] ), _3months )
RETURN
_sum1 * SUM ( 'Table'[WIP] ) / _sum2
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
Sorry to bother you again but I cant get the measure to calculate correctly.
I now have the data used in the measure split into 3 tables
Here is the measure I have used
This is what the result Should be
I can't work out what I am doing wrong
Thank you in advance
NB: Please only use from July onwards as the measure calculates the last 3 months and I have added in any data pre April 21
Brilliant thanks so much Stephen
@KG1 Maybe: https://community.powerbi.com/t5/Quick-Measures-Gallery/Rolling-Weeks/m-p/391694#M128
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 43 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |