cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yellow_old_5
Helper I
Helper I

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 @yellow_old_5 ,

 

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.

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 @yellow_old_5 ,

 

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
Community Champion
Community Champion

Hi @yellow_old_5 ,

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

 




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."
www.linkedin.com/in/danebelarminocpa

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?




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."
www.linkedin.com/in/danebelarminocpa

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

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors