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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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