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! Learn more

Reply
samc_26
Helper IV
Helper IV

Percentage of total - string

Hi, I have a table with multiple rows showing Qualifications which have been either 'completed', 'expired' or 'not qualified' and need to show only 'completed' as a percentage of all rows (including completed). I have been trying to find a measure guide online but am struggling and am still learning the basics of dax. Can anyone tell me how to write this measure please? The columns are as below and the table holding all the data is called 'Quals'. The values are 'count of Employee Name' and th column with the data is 'qualification status'. Thank you!

 

samc_26_0-1663687786763.png

 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@samc_26 ,

First, create a measure that calculates the number of completed records:

Complete_Count = CALCULATE( COUNTA( Quals[Qualification Status] ),
                      FILTER(Quals, Quals[Qualification Status] = "Complete" ))  

Then to calculate percentage, use the DIVIDE function:

Compete_Percent = DIVIDE( [Complete_Count], COUNTA(Quals[Qualification Status]), 0)
                  //You can replace the second argument with another Count Measure if preferred

Then just use the Column Tools to change the format from a decimal to percent.

Hope this gets you where you need to go.

Regards,

View solution in original post

4 REPLIES 4
samc_26
Helper IV
Helper IV

Thank you!!! 😁 You have saved me so much time and hopefully I can use these formulas to understand dax better now! 🌟

rsbin
Super User
Super User

@samc_26 ,

First, create a measure that calculates the number of completed records:

Complete_Count = CALCULATE( COUNTA( Quals[Qualification Status] ),
                      FILTER(Quals, Quals[Qualification Status] = "Complete" ))  

Then to calculate percentage, use the DIVIDE function:

Compete_Percent = DIVIDE( [Complete_Count], COUNTA(Quals[Qualification Status]), 0)
                  //You can replace the second argument with another Count Measure if preferred

Then just use the Column Tools to change the format from a decimal to percent.

Hope this gets you where you need to go.

Regards,

Can this be done with multiple columns?

@danniohere46_1 ,

Yes, this can be done with multiple columns.

Please provide details in a new thread and either I or someone else will be able to assist.

Preferably, please include small set of sample data as text, not as a picture.
Regards,

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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