Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I need your help in how to calculate:
1- %qualified employees over the total employee
2- %Qualified for each job level like we have 2 Associates and one of them is qualified so it should show %50 but how can I do that in power bi?
I tried filter, index column and lookup functions DXA but unfortunately I couldn't get a result!
Solved! Go to Solution.
Hi
Define Below Measures:
1-
ALLPersons =
CALCULATE (
COUNTROWS ( VALUES ( JobLevelStatus[Name] ) ),
ALL ( JobLevelStatus )
)
-------------------------------
2-
JobtitlePersonsCount =
CALCULATE (
COUNTROWS ( VALUES ( JobLevelStatus[Name] ) ),
SUMMARIZE ( JobLevelStatus, JobLevelStatus[JobTitle] )
)
--------------------------------------
3-
QualifiedPersons =
CALCULATE (
COUNTROWS ( VALUES ( JobLevelStatus[Name] ) ),
JobLevelStatus[Status] = "Qualified"
)
Then to achieve your first question answe: DIVIDE([QualifiedPersons],[Allpersons])
And
to achieve your second question answer: DIVIDE([QualifiedPersons],[JobTitlepersonsCount])
Actually the only trick is that you have to do the "group by" over JobTitle to only count the persons of each jobtitle separately and then do the division in your second case.
Best Regards,
Loran
Hi
Define Below Measures:
1-
ALLPersons =
CALCULATE (
COUNTROWS ( VALUES ( JobLevelStatus[Name] ) ),
ALL ( JobLevelStatus )
)
-------------------------------
2-
JobtitlePersonsCount =
CALCULATE (
COUNTROWS ( VALUES ( JobLevelStatus[Name] ) ),
SUMMARIZE ( JobLevelStatus, JobLevelStatus[JobTitle] )
)
--------------------------------------
3-
QualifiedPersons =
CALCULATE (
COUNTROWS ( VALUES ( JobLevelStatus[Name] ) ),
JobLevelStatus[Status] = "Qualified"
)
Then to achieve your first question answe: DIVIDE([QualifiedPersons],[Allpersons])
And
to achieve your second question answer: DIVIDE([QualifiedPersons],[JobTitlepersonsCount])
Actually the only trick is that you have to do the "group by" over JobTitle to only count the persons of each jobtitle separately and then do the division in your second case.
Best Regards,
Loran
Thanks a lot Loran
This first question is okay and I got the results like 0.50 how to convert it as percentage?
The second one I tried to group by but all the visiuals effected, any other way to do it?
You're welcome.
To get it in percentage format, just select your measure in power bi, then go to the "Measure Tools" tab in the upper ribbon, and then change the format to "Percentage".
Sorry but what do you mean that all your visuals are affected? This measure works for what you wanted. Please explain more with examples if there is any problem with that.
Thanks.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
84 | |
57 | |
45 | |
44 | |
36 |