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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional formatting on boolean values filtered by multiple criteria

OK, I have come to a complete wall with Power BI.

I do't "get" calculated columns.

Here's a data example:
Customer     SLA     SLA Result (FYI False means not breached)

ACME          P1        False

ACME          P3        False

ACME          P4        True

ACME          P4        False
ACME          P3        True
ACME          P4        False

ACME          P1        False

ACME          P3        False

ACME          P4        True

Gadgets      P4        False
Gadgets       P3        True
Gadgets      P4        False

Etc for several thousand rows.

Note that the SLA Result is ONE column, that is either true or false.
I can easily do a matrix that shows the % of row total but I want to:

 

a. Eliminate the %xxx.xx forced formatting

Conditionally format so that when a particualr companie's P1 is <80% False that is dispalyed in Red for each company, for each SLA!

So in my example above:

Customer     SLA    % not Breach 

ACME          P1        100 (Shouild be Green)

ACME          P3        66 (should be red)

ACME          P4        80 (should be red)

Gadgets      P1        90 (Shouild be Green)
Gadgets      P2        100 (Shouild be Green)
Gadgets      P4        85 (Orange wouild be nice!

 

ANY HELP appreciated!

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

Add measure below and take a look at Color formatting by field value.

Measure =
DIVIDE (
    COUNTROWS ( FILTER ( Table1, Table1[SLA Result] = FALSE () ) ) + 0,
    COUNTROWS ( Table1 )
) * 100
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

Add measure below and take a look at Color formatting by field value.

Measure =
DIVIDE (
    COUNTROWS ( FILTER ( Table1, Table1[SLA Result] = FALSE () ) ) + 0,
    COUNTROWS ( Table1 )
) * 100
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

That's awesome,. thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.