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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
how can i get a sum of all values of three columns (minor, major, critical) but only distinct values based on the ID column. My data has repeating rows and I can't remove because I'm using other fields value. (ex. since ID 14 is repeating, we would only count that once)
| ID | Minor Total | Major Total | Critical Total |
| 12 | 2 | 1 | 0 |
| 10 | 0 | 2 | 1 |
| 11 | 1 | 11 | 0 |
| 13 | 3 | 3 | 3 |
| 14 | 4 | 0 | 1 |
| 14 | 4 | 0 | 1 |
| 15 | 5 | 0 | 0 |
| 14 | 4 | 0 | 1 |
| 14 | 4 | 0 | 1 |
Solved! Go to Solution.
@jcastr02 , Create measure like this for all three columns
sumx(summarize(Table,Table[ID], Table[Minor Total]),[Minor Total])
sumx(summarize(Table,Table[ID], Table[Major Total]),[Major Total])
sumx(summarize(Table,Table[ID], Table[Critical Total]),[Critical Total])
Try Amit's codes and add up all of them into a measure like below, this should work.
Measure = sumx(summarize('Table','Table'[ID], 'Table'[Minor Total]),[Minor Total]) + sumx(summarize('Table','Table'[ID], 'Table'[Major Total]),[Major Total]) + sumx(summarize('Table','Table'[ID], 'Table'[Critical Total]),[Critical Total])You can also try this measure:
Measure 2 = SUMX(SUMMARIZE('Table','Table'[ID],'Table'[Minor Total],'Table'[Major Total],'Table'[Critical Total]),'Table'[Minor Total]+'Table'[Major Total]+'Table'[Critical Total])
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
In adition to @amitchandak 's dax, you can also try below measure:
@jcastr02 , Create measure like this for all three columns
sumx(summarize(Table,Table[ID], Table[Minor Total]),[Minor Total])
sumx(summarize(Table,Table[ID], Table[Major Total]),[Major Total])
sumx(summarize(Table,Table[ID], Table[Critical Total]),[Critical Total])
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!