Forum Discussion

Danny-Happy's avatar
Danny-Happy
Helper I
5 years ago
Solved

summarize Employee result by Project

Hi everyone, We would to calculate a percentage of revenue by employee.   The first problem we had was with table 2, see picture.  The total was incorrect and we fixed this with HasOneFilter. ...
  • parry2k's avatar
    5 years ago

    Danny-Happy there are many ways to solve it, try this measure:

     

    Total Rev = 
    SUMX ( 
    SUMMARIZE ( 
    Table, 
    Table[Name], 
    Table[Project], 
    "@Revenue", SUM ( Table[Revenue] ) * MAX ( Table[Percentage] )
    ), [@Revenue]
    )

     

    Check my latest blog post Improve UX: Show Year in Legend When Using Time Intelligence Measures | PeryTUS IT Solutions  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.