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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
rpjheeney
Frequent Visitor

Percentage Help

Hi all

Im trying to display the value highlighted below as a percentage, however when i attempt to convert it, it shows 100%.
I'm looking to display the percentage for SLA Achieved across the dataset.

 

thankyou, Rob

 

rpjheeney_0-1738743757769.png

 

rpjheeney_1-1738743822986.pngrpjheeney_2-1738743854042.png

 

 

1 ACCEPTED SOLUTION

You are missing a part of the CALCULATE, 

 

Use the formula provided by @rajendraongole1 

 

If this helped you, please feel free to send a thumb up 

 

SLA Achieved Percentage =
VAR TotalCount = COUNT('Table'[SLA Status]) -- Count of all SLA statuses
VAR AchievedCount = CALCULATE(COUNT('Table'[SLA Status]), 'Table'[SLA Status] = "SLA Achieved") -- Count of only "SLA Achieved"
RETURN
DIVIDE(AchievedCount, TotalCount, 0)

View solution in original post

8 REPLIES 8
v-yohua-msft
Community Support
Community Support

Hi, @rpjheeney 

Glad to hear you solved the problem!  
If you can, please mark the correct answer as a standard answer, which will be beneficial for future users to read this post. 

 

Best Regards

Yongkang Hua

Bibiano_Geraldo
Super User
Super User

Hi @rpjheeney ,

Across dataset is what measure to compare? plase can you share the DAX used?

Hi, thankyou for the response. 

I'm looking to capture the percentage total where the value "SLA Achieved" appears across the table.

rpjheeney_0-1738756229105.png

 

rajendraongole1
Super User
Super User

Hi @rpjheeney  - It looks like your measure for "SLA Achieved" is currently displaying as a count. When you try to convert it to a percentage, it likely calculates the percentage as 1.00 (or 100%) because it's not being divided by the total count of all SLA statuses.

 

SLA Achieved Percentage =
VAR TotalCount = COUNT('Table'[SLA Status]) -- Count of all SLA statuses
VAR AchievedCount = CALCULATE(COUNT('Table'[SLA Status]), 'Table'[SLA Status] = "SLA Achieved") -- Count of only "SLA Achieved"
RETURN
DIVIDE(AchievedCount, TotalCount, 0)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thankyou for this, i've attempted to run this and it hasnt worked.

 

Please can you advise? Thanks, Rob

 

rpjheeney_0-1738755432392.png

 

You are missing a part of the CALCULATE, 

 

Use the formula provided by @rajendraongole1 

 

If this helped you, please feel free to send a thumb up 

 

SLA Achieved Percentage =
VAR TotalCount = COUNT('Table'[SLA Status]) -- Count of all SLA statuses
VAR AchievedCount = CALCULATE(COUNT('Table'[SLA Status]), 'Table'[SLA Status] = "SLA Achieved") -- Count of only "SLA Achieved"
RETURN
DIVIDE(AchievedCount, TotalCount, 0)

this has now worked. Thankyou everyone for your feedback, greatly appreciated!

MattiaFratello
Resolver IV
Resolver IV

Hi @rpjheeney ,

 

First create a DAX Measure that calculates the count of SLA Achieved
COUNT OF SLA = CALCULATE(COUNT(SLA_ACHIVED), SLA_ACHIEVED = SLA_ACHIEVED)

 

then create another DAX Measure as follow:

DIVIDE(COUNT OF SLA, COUNT(SLA_ACHIEVED))

 

Format this one as %

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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