Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Need help with calculations

Hello, I am very new in PowerBI and I need help with calculations. From the table below (this is a small part of the table) From this table, I need to calculate total hours per Project_ID ba...
  • v-eachen-msft's avatar
    7 years ago

    Hi Anonymous ,

     

    For your first requirement, you need to create two measures.

    AVG =
    CALCULATE ( AVERAGE ( 'Table'[Planned Hours] ) )
    
    TotalHours =
    SUMX ( VALUES ( 'Table'[Task ID] ), [AVG] )
    

    Then you can use Project ID and TotalHours to get a visual.

    For your second requirement, I do not understand the logic of your column “Progress”. Maybe you can provide more information.

     

    Best Regards,

    Eads

     

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