Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Murtadhaay
Frequent Visitor

How to Calculate the Total Percentage and for each job level?

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?

 

power bi.JPG

 

I tried filter, index column and lookup functions DXA but unfortunately I couldn't get a result!

1 ACCEPTED SOLUTION
MohammadLoran25
Solution Sage
Solution Sage

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

 

View solution in original post

3 REPLIES 3
MohammadLoran25
Solution Sage
Solution Sage

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.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.