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 a table with deliveries and items in each delivery. I want to get the cost for each delivery but each item has the cost for the delivery. How do I create a measure to get the cost for a delivery. My data looks like this:
| Deliver | Item | Delivery Cost |
| A | 1 | $1 |
| A | 2 | $1 |
| A | 3 | $1 |
| A | 4 | $1 |
| A | 5 | $1 |
| B | 6 | $20 |
| B | 7 | $20 |
| B | 8 | $5 |
| C | 9 | $5 |
Solved! Go to Solution.
Hi @TomSinAA ,
Here we go 🙂
Measure = CALCULATE(SUM('Table'[Delivvery cost]),ALLEXCEPT('Table','Table'[Deliver]))
Hi @TomSinAA ,
Here we go 🙂
Measure = CALCULATE(SUM('Table'[Delivvery cost]),ALLEXCEPT('Table','Table'[Deliver]))
So, to confirm: the cost of the delivery is represented on each item line, so that the total cost for the delivery is not a SUM of the line costs, but just that one value?
You could write a measure like this:
Delivery Cost = MAX( 'TableName'[Delivery Cost] )
Then build a table vizualization with your delivery field, and delivery cost measure.
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 |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 124 | |
| 108 | |
| 47 | |
| 28 | |
| 27 |