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
Anonymous
Not applicable

Trying to sum one value per unique column value

I have a row that has the totals per Category in row 2. What I'd like is to not sum the total of row 2 because that would be way too much, but only sum one value in row 2 per Category. The granularity also needs to be kept. I pretty much need a DAX calc that will make the sum of column 2 be equal to the sum of column three by only summing one value from column 2 per Category so both grand totals for column 2 and 3 are 2500. Right now, column two will be 7500, which is over-summing.

CategoryTotal Commission 
A1000 $                                   400.00
A1000 $                                   200.00
A1000 $                                   400.00
B1500 $                                   500.00
B1500 $                                   500.00
B1500 $                                   500.00

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Untitled.png

 

Sum Total measure: = 
SUMX ( SUMMARIZE ( 'Data', 'Data'[Category], 'Data'[Total] ), 'Data'[Total] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Untitled.png

 

Sum Total measure: = 
SUMX ( SUMMARIZE ( 'Data', 'Data'[Category], 'Data'[Total] ), 'Data'[Total] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
vapid128
Solution Specialist
Solution Specialist

calculate(sum([commission]),allexpet(table, table[Category]))

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.