This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi Experts,
I have a matrix calculating warehouse ending inventory.
The question is, I can't display "Ending Cost" this columns's total calculation the way I want.
I'm using
I'm not sure if what I provided is clear. I would appreciate any help.
Solved! Go to Solution.
Hi @dream36876 ,
You can try this
Ending_Cost =
VAR _t =
SUMMARIZE(
'Table',
'Table'[Cost per Unit],
'Table'[Inventory],
"Sum", SELECTEDVALUE('Table'[Cost per Unit])*SELECTEDVALUE('Table'[Inventory])
)
RETURN
SUMX(_t,[Sum])
Fainal output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hello @dream36876
Please try with the below formula..if doesnt work please share us the sample dataset to check further.
Measure = Sumx(Values(GdsNa), AVERAGE('Ending Per unit'[Cost per Unit]) * SUM('Ending Inventory'[Inventory]))
If you find this helpful , please mark it as solution and Your Kudos are much appreciated!
Thank You
Dharmendar S
Hello, Thanks for reply
But it still doesn't work what i want
I can't share file here,how about sample data?
Hi @dream36876 ,
You can try this
Ending_Cost =
VAR _t =
SUMMARIZE(
'Table',
'Table'[Cost per Unit],
'Table'[Inventory],
"Sum", SELECTEDVALUE('Table'[Cost per Unit])*SELECTEDVALUE('Table'[Inventory])
)
RETURN
SUMX(_t,[Sum])
Fainal output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the May 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 |
|---|---|
| 29 | |
| 28 | |
| 25 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 27 | |
| 20 | |
| 19 |