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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
scoutmedic
Helper I
Helper I

Card displaying when categories exceed a calculated threshold

New to PBI here. I'm trying to create a card visual to display total number of categories exceeding a calculated threshold.

 

My organization currently uses multiple categories to classify errors and tracks based on a production value. I created two measures to account for the calculated error rate and calculated threshold value for each category. Currently, I'm using a bar graph and table to highlight when the error rate exceeds the threshold measure. However, I'd also like to have a card to display how many categories are exceeding the threshold. 

 

Current Measures:

     Error Rate

     Threshold

 

I thought this would be as simple as another measure to count when Error Rate > Threshold, but I'm unable to create such a measure. Thoughts on how this can be accomplished?

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@scoutmedic ,

First, create a measure that evaluates whether the Error Rate exceeds the Threshold for each category. This measure will return 1 if the Error Rate exceeds the Threshold, and 0 otherwise.

 

Exceeds Threshold = IF([Error Rate] > [Threshold], 1, 0)

Next, create another measure to count how many categories have an Error Rate that exceeds the Threshold.

Categories Exceeding Threshold = COUNTROWS(FILTER(ALL('YourTable'[Category]), [Exceeds Threshold] = 1))

 





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

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@scoutmedic ,

First, create a measure that evaluates whether the Error Rate exceeds the Threshold for each category. This measure will return 1 if the Error Rate exceeds the Threshold, and 0 otherwise.

 

Exceeds Threshold = IF([Error Rate] > [Threshold], 1, 0)

Next, create another measure to count how many categories have an Error Rate that exceeds the Threshold.

Categories Exceeding Threshold = COUNTROWS(FILTER(ALL('YourTable'[Category]), [Exceeds Threshold] = 1))

 





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

Proud to be a Super User!


LinkedIn


Thanks @Arul. Once I figured out to use brackets for measures, I was on the right track with the Exceeds Threshold measure. Just didn't create the Categories Exceeding Threshold measure. 

 

Also, I added a +0 to the end of COUNTROWS expression to prevent it from returning BLANK if no rows met the criteria.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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