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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ZickZack
Regular Visitor

Calculation of two column values considering duplicates

Hi all,

I have data in an Excel spreadsheet. The first thing I want to do is find out the count of all unique VINs per model. I do this with the measure = DISTINCTCOUNT. Then I want to multiply the summed number of vehicles with the net EB for the specific model. Example: Model SZ has a net EB of 1200. The clear number of vehicles for model SZ is 2. Then the calculation should be: 2*1200. When I calculate this in Power Bi, the duplicates are always included in the calculation. Why?

 

This is my data model

ModellFahrgestellnet EB
SZ1231200
SZ1231200
SZ1231200
SZ8881200
SH2344500
SY5432351
SH6651351

 

I want to represent that in Power BI:

 

Modellnumber of vehiclesnet EBnumber of vehicles * Netto EB
SZ212002400
SH245009000
SY123512351

 

And that is what i get in Power BI:

 

ZickZack_1-1692953291334.png

 

My Measure for Sales Volumen is: 

 

Sales Volumen = [number of vehicles] * SUMX(Table,Table[net EB])

 

I'm not very familiar with DAX and can't find my mistake. Can you help?

 

Thankx a lot

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ZickZack ,

You can update the formula of your measure as below to get it, please find the details in the attachment.

Sales Volumen = 
VAR _tab =
    SUMMARIZE ( 'Table', 'Table'[Modell], 'Table'[Fahrgestell], 'Table'[net EB] )
RETURN
    SUMX ( _tab, [net EB] )

vyiruanmsft_0-1693209895883.png

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ZickZack ,

You can update the formula of your measure as below to get it, please find the details in the attachment.

Sales Volumen = 
VAR _tab =
    SUMMARIZE ( 'Table', 'Table'[Modell], 'Table'[Fahrgestell], 'Table'[net EB] )
RETURN
    SUMX ( _tab, [net EB] )

vyiruanmsft_0-1693209895883.png

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.