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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Percentage of Data that is a Certain Value

I have a Measure that isnt quite working how I would like.

 

Pass Rate = VAR _ALL = COUNTROWS('Quality Daily Compliance') VAR _Pass = CALCULATE(COUNTROWS('Quality Daily Compliance'),'Quality Daily Compliance'[Overall Pass /] = "Pass") VAR _Result = DIVIDE(_Pass,_ALL) RETURN _Result

 

jamescosten_0-1715175432245.png

The data is a text based column with either Pass or Fail as entries. You can see the values definately are not 100%

1 ACCEPTED SOLUTION
halfglassdarkly
Responsive Resident
Responsive Resident

Hmm, check that it isn't being affected by a filter or slicer that is limiting the context of the measure to 'Quality Daily Compliance'[Overall Pass /] = "Pass"


Check if it is still showing 100% if you display that measure in a table visual instead of a card.

 

Then I'd try testing the result you get if you Return  _ALL and _Pass seperately. Are they returning the values you expect (I.e. do they match the results of the other cards for checks completed and checks passed?)

View solution in original post

5 REPLIES 5
halfglassdarkly
Responsive Resident
Responsive Resident

Hmm, check that it isn't being affected by a filter or slicer that is limiting the context of the measure to 'Quality Daily Compliance'[Overall Pass /] = "Pass"


Check if it is still showing 100% if you display that measure in a table visual instead of a card.

 

Then I'd try testing the result you get if you Return  _ALL and _Pass seperately. Are they returning the values you expect (I.e. do they match the results of the other cards for checks completed and checks passed?)

Anonymous
Not applicable

thank you, I dont know why i didnt think of this. I had a filter on.

Heh, great 🙂

Anonymous
Not applicable

It is the latter:

jamescosten_1-1715177191113.png

It is also as a percentage but the math is just returning 100%. So I can assume the Measure is wrong somehow.

 

jamescosten_0-1715177175583.png

 

halfglassdarkly
Responsive Resident
Responsive Resident

Is the measure formatted as a percentage or did you select Show Value As > Percentage of Grand Total at the visual level?

 

If the latter, revert it back to Show Value As > No Calculation and then just format the measure as a percentage instead to convert your decimal value to a percentage.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.