Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello Guys,
I have following Table
The Column I am having problems with is the marked AOPWD Column.
It is a calculated column :
Solved! Go to Solution.
Hi @KevBI ,
I think there is something wrong in your calculate logic.
The calculate logic of your measure is 60900 / (20 * 7) = 435.
Try this code.
AOPWDMeasure =
DIVIDE (
SUM ( 'Spoilage AOP 2022'[AOP] ),
SUM ( 'Spoilage AOP 2022'[WDMonth] )
) * ( [workdays] )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@amitchandak
So when looking at the first row, Value Stream CE-E, filtered on 01.02-09.02,
we have an AOP of 60900, WDMonth = 20 and workdays = 7.
So it should calculate 60900 / 20 * 7 = 21315
The Measure puts out 435 though.
Hi @KevBI ,
I think there is something wrong in your calculate logic.
The calculate logic of your measure is 60900 / (20 * 7) = 435.
Try this code.
AOPWDMeasure =
DIVIDE (
SUM ( 'Spoilage AOP 2022'[AOP] ),
SUM ( 'Spoilage AOP 2022'[WDMonth] )
) * ( [workdays] )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@KevBI , Try like, if workday is measure
AOPWD = Divide(sum('Spoilage AOP 2022'[AOP]) ,sum( 'Spoilage AOP 2022'[WDMonth]) * [workdays]
or
AOPWD = Divide(sum('Spoilage AOP 2022'[AOP]) ,sum( 'Spoilage AOP 2022'[WDMonth]) * max([workdays])
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thanks @amitchandak !
It doesn't calculate correctly though, maybe I am doing something worng.
I attached a sample Report, thank you for helping out!
https://1drv.ms/u/s!Aq582f-TWdgxi2jvJdiLbdfcRHHK?e=czCfaz
Hi,
Modify your measure to
AOPWDMeasure = Divide(sum('Spoilage AOP 2022'[AOP]) ,sum( 'Spoilage AOP 2022'[WDMonth])) * ([workdays])
Hope this helps.
@KevBI , what is the expected number. as number seem fine to me
there should small diff in the calculation
AOPWDMeasure = Divide(sum('Spoilage AOP 2022'[AOP]) ,sumX('Spoilage AOP 2022', 'Spoilage AOP 2022'[WDMonth] * [workdays]))
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 43 | |
| 35 | |
| 31 |