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!
I have created measure STOCK TO XFER using measures from different tables that subtracts to provide the difference. Have also created measure XFER PLT using STOCK TO XFER and a measure from another table to summarize in pallet quantity. Please see syntax below and sample data.
TLT Xwk DMND = sum(OPN_SOs[Xwk DMND])
| INV ON HAND | STOCK TO XFER | XFER PLT |
| 1015 | -681 | -7.09 |
| 0 | -384 | -3.20 |
| 4345 | 25 | .21 |
| 3360 | 3153 | 26.28 |
| 165 | 165 | 1.38 |
Solved! Go to Solution.
hi @mhender ,
Not sure if i really get you, supposing you have a SKU_Detail[sku] column, try like:
STOCK TO XFER =
SUMX(
FILTER(
ADDCOLUMNS(
VALUES(SKU_Detail[sku]),
"Diff",
[INV ON HND]-[TLT Xwk DMND]
),
[Diff]>0
),
[Diff]
)
hi @mhender ,
Not sure if i really get you, supposing you have a SKU_Detail[sku] column, try like:
STOCK TO XFER =
SUMX(
FILTER(
ADDCOLUMNS(
VALUES(SKU_Detail[sku]),
"Diff",
[INV ON HND]-[TLT Xwk DMND]
),
[Diff]>0
),
[Diff]
)
Hi @FreemanZ , thank you for taking the time to read and offer a solution to this question!
Disregard:
I have used attempted solution with exact syntax. Receiving the below error on line 6:
"The following syntax error occurred during parsing: Invalid token, Line 1, Offset 95, [Diff)))."
Based on error thinking that "Diff" needs to be defined. How would "Diff" be defined in this solution?
Syntax error on my part!!! @FreemanZ this worked like a charm. Can't thank you enough for the help with this. Cheers!
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 |
|---|---|
| 7 | |
| 5 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 17 | |
| 14 | |
| 10 | |
| 5 | |
| 4 |