Forum Discussion
Total sum by unique user
- Anonymous3 years ago
Hi chucknorris ,
If you want to group summation by userid, you can refer to a formula like this, which applies to group summation, and modify it accordingly according to your actual situation.
Measure = CALCULATE(SUM('Table (2)'[Value]),FILTER(ALL('Table (2)'),'Table (2)'[Attribute]=SELECTEDVALUE('Table (2)'[Attribute])))You can see that it is grouped by attribute. In your case, just replace it with "user id ".
Best regards,
Community Support Team Selina zhu
Hi chucknorris ,
If you want to group summation by userid, you can refer to a formula like this, which applies to group summation, and modify it accordingly according to your actual situation.
Measure = CALCULATE(SUM('Table (2)'[Value]),FILTER(ALL('Table (2)'),'Table (2)'[Attribute]=SELECTEDVALUE('Table (2)'[Attribute])))
You can see that it is grouped by attribute. In your case, just replace it with "user id ".
Best regards,
Community Support Team Selina zhu
- chucknorris3 years agoNew Member
Hi Selina,
thank you for your answer.
This solution with measureMeasure2 = CALCULATE(SUM(testdata_powerbi[correctlySortedOrderQuantity]),FILTER(ALL(testdata_powerbi),testdata_powerbi[userId]=SELECTEDVALUE(testdata_powerbi[userId])))works! 🙂
Kind regards,
Chuck Norris