Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe 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.
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
Solved! Go to 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)
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
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.
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)
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
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!
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 %
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
80 | |
67 | |
41 | |
39 |