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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
IT_inter
Frequent Visitor

Sum numbers based on unique values from column

Hi guys!

 

I have simple question creating a measure which SUM number based on unique values from column. Unfortanately i didn't find any references, maybe my search query isn't correct.

I have following table and i want to SUM inaccessibility based on unique key_problem.
Based on table below i expect to get SUM = 234 + 45 + 209 + 159 = 647.

IT_inter_0-1697724496656.png

 

key_problemID_serviceinaccessibilityService group
C-777IT-641234MAIL
C-848IT-64145MAIL
C-1218IT-1015721 209MAIL
C-1218IT-1015720209MAIL
C-1501IT-1015721159MAIL
C-1501IT-1015720159MAIL

 

Thanks in advance!

1 ACCEPTED SOLUTION
DimaMD
Solution Sage
Solution Sage

hi @IT_inter try it

DimaMD_0-1697725508765.png

Measure = SUMX( SUMMARIZE('table3',table3[key_problem],table3[Service group],table3[inaccessibility]),[inaccessibility] )

__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

View solution in original post

3 REPLIES 3
khaledHabib90
Resolver II
Resolver II

Hello,

please try this measure

= SUMX(VALUES(Key_ProblemID),max(inaccessibility))

this measure should work correctly if the values are the same for each duplicated problem ID

 

If my reply solved your problem, please mark it as the solution 🙂

Hi!

Thanks. but it didn't work.

 

@DimaMD worked!

DimaMD
Solution Sage
Solution Sage

hi @IT_inter try it

DimaMD_0-1697725508765.png

Measure = SUMX( SUMMARIZE('table3',table3[key_problem],table3[Service group],table3[inaccessibility]),[inaccessibility] )

__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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