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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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