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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.