Forum Discussion

chucknorris's avatar
chucknorris
New Member
3 years ago
Solved

Total sum by unique user

Hello everybody, I want to calculate total quantity value at a certain warehouse id (that can be selected via power bi GUI). The value should be shown at first occurence of a unique customerNumbe...
  • Anonymous's avatar
    Anonymous
    3 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