Forum Discussion

polaris3028's avatar
polaris3028
Helper III
8 years ago
Solved

Computing Resource Utilization Per Day, Week and Month

Hi PowerBI Gurus,

 

I'm stucked and I need help. Trying to compute for utilization rate per resource, been able to figure it out if table shows with per resource, but everytime i remove the resource column in the table and instead show it per day, the sum is not correct.

 

This looks good:

ResourceDateHours SpentHours Required% Utilization
Bryan11/1/20172.67.534.67%
Bryan11/2/201727.526.67%
Bryan11/3/20172.57.533.33%
Bryan11/6/201717.513.33%
Bryan11/7/201757.566.67%
Bryan11/8/20171.57.520.00%
Bryan11/9/20173.57.546.67%
Bryan11/10/201727.526.67%
Bryan11/15/20174.57.560.00%
Bryan11/16/201767.580.00%
Bryan11/17/20174.57.560.00%
Bryan11/20/201787.5106.67%
Bryan11/21/20171.57.520.00%
Bryan11/22/20170.257.53.33%
Bryan11/27/20172.57.533.33%
Bryan Total 47.35112.542.09%
Adams11/1/20170.57.56.67%
Adams11/2/201727.526.67%
Adams11/3/20170.257.53.33%
Adams11/9/20172.257.530.00%
Adams11/10/20170.57.56.67%
Adams11/13/201737.540.00%
Adams11/14/20173.57.546.67%
Adams11/16/20170.57.56.67%
Adams11/20/201727.526.67%
Adams Total 14.567.521.48%
Grand Total 61.8518034.36%

 

 

This one is not as the Hours Required of 7.5 hours(fix for a day) is not summing up once the Resource field is removed.

DateHours SpentHours Required%Utilization
11/1/201756.17.5748.00%
11/2/201752.547.5700.53%
11/3/201732.567.5434.13%
11/6/2017137.387.51831.73%
11/7/201732.127.5428.27%
11/8/201741.677.5555.60%
11/9/201745.57.5606.67%
11/10/201721.847.5291.20%
11/13/201727.47.5365.33%
11/14/201734.257.5456.67%
11/15/201712.787.5170.40%
11/16/201741.287.5550.40%
11/17/201715.87.5210.67%
11/20/201733.697.5449.20%
11/21/201757.637.5768.40%
11/22/201741.617.5554.80%
11/23/201762.17.5828.00%
11/24/201722.527.5300.27%
11/27/201715.257.5203.33%
11/28/201732.757.5436.67%
11/29/201719.947.5265.87%
Grand Total836.71157.5531.24%

 

Please advise.

 

Thanks!

  • polaris3028's avatar
    polaris3028
    8 years ago

    Wow that fixed it!  I changed the relationship to both and changed the %Utilization to use:

    %Utilization = DIVIDE([#Hours Spent],SUM('Developer Date Table'[Hours Required]),0)

     

    You're amazing parry2k!

     

    Here's the result that makes more sense. :)

  • hahaha, same here, Bud.  Thanks a lot! You're a great help..:smileyhappy:

31 Replies

  • Here's the measure i used for Required Hours,where  #RequiredHours = DISTINCTCOUNT(Table, [Date])*7.5

    • parry2k's avatar
      parry2k
      Super User

      i think ask here is hours spent % again hours required, correct?

      • parry2k's avatar
        parry2k
        Super User
        hours spent = SUM(table[hours spent])
        
        hours required = SUM(table[hours required])
        
        % Resource Required = DIVIDE([hours spent], [hours required], 0)

        add above measure and change data format for "% resource required" to "%"