Forum Discussion
Computing Resource Utilization Per Day, Week and Month
- 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. :)
- 8 years ago
hahaha, same here, Bud. Thanks a lot! You're a great help..:smileyhappy:
per resource it looks good, but the sum utilization for the entire day is not correct. The GrandTotal for #Hours Required for the day is not 7.5, but should be #Resource*7.5
is this what you are looking for?
- parry2k8 years agoSuper User
No worries, atleast you have solution, mark it answer if you think it is resolved.
- polaris30288 years agoHelper III
Getting closer now. I have the report updated on my end.
View 1: Correct
View 2: Not Correct - I removed the Resource field and the hours Required stayed at 7.5, instead of keeping the sum total of all resources for that day....
- parry2k8 years agoSuper User
hey polaris3028 seems like we are going in circles, the file you sent to me was Date -> Developer and the images you are sending now other way around Developer->Date, so I want to amke sure we are looking at the same thing to provide effective solution.
- polaris30288 years agoHelper III
Getting closer now. Already updated the report on my end.
View 1: CORRECT
View 2: NOT CORRECT - I removed the Resource column, and the #Hours Required is only 7.5 instead of the sum total of the View 1.
- polaris30288 years agoHelper III
- polaris30288 years agoHelper III
The goal is #Hours Required to keep the computed value regardless, if the table/matrix will be presented per Resource, or Daily, Weekly, Monthly Rollup. Hope that clarifies....
- polaris30288 years agoHelper III
parry2k - just to add up. I used to compute the #hours required based on formula:
#Hours Required = DISTINCTCOUNT(Dev_OverAll[Developer])*7.5.
Let's take a specific example:
Developer: Bryan
Month: November
#Hours Spent: 47.35
#Days Worked: 15 Days (Between Nov 1-27)
%Utilization = 47.35 / 112.5, which is 42.09%
This can only be achieved if I change the formula from #Hours Required = DISTINCTCOUNT(Dev_OverAll[Developer])*7.5 to:
#Hours Required = DISTINCTCOUNT(Dev_OverAll[DevDate])*7.5.
Any suggestion?
- parry2k8 years agoSuper User
I think you need to use calculated table to resolve it, try following steps:
Add calculated column in your table
#my Key = Dev_OverAll[Developer] & Format( Dev_OverAll[DevDate], "YYYYMMDD")
Goto modelling tab and click new table and add following expression:
Developer Date Table = SUMMARIZECOLUMNS(Dev_OverAll[#my Key], "Hours Required", MAX(Dev_OverAll[#Hours Required2]))
in data modelling tab, change Default summarization of "Hours Required" field in this new table to SUM
you will see new table in your model, now set relationship between this new table wiht dev table on #myKey
- in value, drop "Hours Required" from this new table, and make sure aggregation is "SUM"
test it
- polaris30288 years agoHelper III
I'm getting this error:
- polaris30288 years agoHelper III
Would that matter since the #Hours Required field is a measure and not a column?
- parry2k8 years agoSuper User
yes it need to be column, the file you sent me in that #Hours Required 2 is a column and that is why I used that one, seems like you are making chages at your end at the same time :(
- polaris30288 years agoHelper III
Opps, sorry about that. I restored the previous version and did as instructed. After creating the relationship below:
Here's the result of the table. Is there another step to take after this?
It's not correct stil. :(
- parry2k8 years agoSuper User
what aggegation you are using for "Hours Required" it suppose to be SUM
- polaris30288 years agoHelper III
It's SUM... and I tried to add the Hours Required field in the table to check the result....
Is the relationship as shown above correct? What should be the %Utilization after we set a new table?
- parry2k8 years agoSuper User
polaris3028 not sure what you are showing here, you need to show what aggregation you used in value section when you drop "Hours Required" from this new calculated table? sorry if i'm not clear what I'm asking.
- parry2k8 years agoSuper User
one more thing check your relationship is both direction, not single.
- polaris30288 years agoHelper III
not sure either... but here's the aggregation in the table
- parry2k8 years agoSuper User
check relationship please, make sure it is both direction.
- polaris30288 years agoHelper III
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. :)
- parry2k8 years agoSuper User
YAY, can breathe now. Glad to hear it is fixed. Cheers buddy and good luck :)
- polaris30288 years agoHelper III
hahaha, same here, Bud. Thanks a lot! You're a great help..:smileyhappy: