Forum Discussion
% of Role Utilisation per project
- 1 year ago
Hi Batman_powerbi -can you please create below measures:
DistinctProjectsPerRole = DISTINCTCOUNT(prodj[PROJECT])Total number of projects:TotalProjects = CALCULATE(DISTINCTCOUNT(prodj[PROJECT]), ALL(prodj))%allocation measure as below:PercentAllocation = DIVIDE([DistinctProjectsPerRole], [TotalProjects])Hope this helps. Please check.
Hi Batman_powerbi -you can calculate the count of times each role is used across projects, their percentage allocation across all projects
measure 1:
DIVIDE(
[Total Hours per Role],
[Count of Projects per Role],
0
)
Hope the above measures helps to create the required report.
rajendraongole1
thankyou for the help
based on your calculation the Measure 2 is 100%, it should be the calculation against the total of projects
for the tester, as per the example, the correct output is 75% as the "Tester" has been used on 3 out of 4 projects.
another example, in my real data, i have a BA whom has been used across 22 projects out of a possible 43 for the FY which would be a calculation of 51.16%
- rajendraongole11 year ago
Super User
Hi Batman_powerbi -can you please create below measures:
DistinctProjectsPerRole = DISTINCTCOUNT(prodj[PROJECT])Total number of projects:TotalProjects = CALCULATE(DISTINCTCOUNT(prodj[PROJECT]), ALL(prodj))%allocation measure as below:PercentAllocation = DIVIDE([DistinctProjectsPerRole], [TotalProjects])Hope this helps. Please check.
- Batman_powerbi1 year agoFrequent Visitor
rajendraongole1
thankyou
i tried using variables to simplify the amount of measures to create
when i do this i am getting a rounded up number rather than a true %, not sure what i am doing wrongMeasure 2 =VAR A = DISTINCTCOUNT('Data'[Project Name])VAR B = CALCULATE(DISTINCTCOUNT('Data'[Project Name]), ALL('Data'))RETURNDIVIDE(A,B) - Batman_powerbi1 year agoFrequent Visitor
rajendraongole1
not sure exactly what was happening with the rounded numbers, but started fresh and all works as intendedthankyou for the help