Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
TomSinAA
Helper IV
Helper IV

Select Distinct

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:

DeliverItemDelivery Cost
A1$1
A2$1
A3$1
A4$1
A5$1
B6$20
B7$20
B8$5
C9$5
1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @TomSinAA ,

 

Here we go 🙂

Measure = CALCULATE(SUM('Table'[Delivvery cost]),ALLEXCEPT('Table','Table'[Deliver]))

 

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @TomSinAA ,

 

Here we go 🙂

Measure = CALCULATE(SUM('Table'[Delivvery cost]),ALLEXCEPT('Table','Table'[Deliver]))

 

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
CoreyP
Solution Sage
Solution Sage

DeliveryCost.PNG

CoreyP
Solution Sage
Solution Sage

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.