This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
This post has closed.
@Anonymous Well, here is the code cleaned up:
Yield %_latest_total =
IF (
( Fact_Yield_Detail_Latest[Item_Group_deduce] = "AP3" )
|| ( Fact_Yield_Detail_Latest[Item_Group_deduce] = "AF1" ),
CALCULATE (
SUM ( Fact_Yield_Detail_Latest[Good_Qty] ),
Fact_Yield_Detail_Latest[Process_Description] = "Double Check"
)
/ CALCULATE (
SUM ( Fact_Yield_Detail_Latest[Start_Qty] ),
Fact_Yield_Detail_Latest[Process_Description] = "Lathe Cutting"
),
IF (
Fact_Yield_Detail_Latest[Item_Group_deduce] = "SP2 (toric)"
|| ( Fact_Yield_Detail_Latest[Item_Group_deduce] = "SP2 (non-toric)" ),
CALCULATE (
SUM ( Fact_Yield_Detail_Latest[Good_Qty] ),
Fact_Yield_Detail_Latest[Process_Description] = "Double Check"
)
/ CALCULATE (
SUM ( Fact_Yield_Detail_Latest[Start_Qty] ),
Fact_Yield_Detail_Latest[Process_Description] = "UV mould prep"
),
0
)
)
What I would suggest is to return hard coded values for each possible condition. Then you can check your logic.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |