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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Sum by two groups

Hi everyone , I need help with this issue i have a table visual:

UserlevelSalery
A134
B232
B237
C126
C328
C129
D333
E130


 if i remove the level column i want this:

A34
B69
C83
D33
E30

 its possible to do it in measure?

7 REPLIES 7
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

One point of confusion, if you remove the level column, Power BI will automatically calculate the Salery.

vchenwuzmsft_0-1653618242903.gif

If i misunderstood you, please let me know and share your pbix file without sensitive data and expect result.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

https://www.dropbox.com/s/qfml0a8lyf45rts/test%20group.pbix?dl=0 
Hi, thank you for your reply, i have add the pbix file, what i want is like ,i want sum the distinct store type.

Hi @Anonymous ,

 

Sorry, still don't quite understand what you want the result to look like. Please give what you want the result to look like, hand-drawn is fine.

 

Best Regards

Community Support Team _ chenwu zhu

danextian
Super User
Super User

Hi @Anonymous ,

Try this measure below which is similar to COUNTIF in Excel:

MyMeasure =
CALCULATE ( SUM ( Table[Salery] ), ALLEXCEPT ( Table, Table[User] ) )
//will return the sum of Salery for each User

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

Thank you for your reply but it doesnt work 😞 , i didnt get the result

What would your formula be if you did it in Excel?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

Hi again , I dont have any formula :), i just dont get right value. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.