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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors