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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.