Forum Discussion

JS27's avatar
JS27
Regular Visitor
6 years ago
Solved

Cumulative Report / Project Hours

Hello Guys, I'm new in this forum and working with PowerBI, i would like to have some advices in how to handle the following scenario using Cumulatives Totals for my Projects hours and reduce every m...
  • v-yingjl's avatar
    6 years ago

    Hi JS27 ,

    To get exactly the same output as you expected, it could be complicated and create multi simliar measures:

    Hours Exec May 2020 =
    CALCULATE (
        SUM ( 'Activity Report'[Hours Exec] ),
        FILTER ( 'Activity Report', 'Activity Report'[Date].[MonthNo] = 5 )
    )
    
    Hours Not Prof Exec May-2020 =
    CALCULATE (
        SUM ( 'Activity Report'[Hours Not Prof Exec] ),
        FILTER ( 'Activity Report', 'Activity Report'[Date].[MonthNo] = 5 )
    )
    
    Backlog Hours Exec May 2020 = SELECTEDVALUE('Budget'[Budget Hours]) - [Hours Exec May 2020]
    
    Backlog Hours Not Prof Exec May 2020 = SELECTEDVALUE(Budget[Budget Hours Not Profitable]) - [Hours Not Prof Exec May-2020]

     

     

    Sample file is attached:  Cumulative Report / Project Hours.pbix

     

    Best Regards,
    Yingjie Li

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