Forum Discussion

chadmyers's avatar
chadmyers
New Member
10 years ago
Solved

Conditional Formating Up/Down Status in a Table

I am utilizing a SQL Direct Query to pull my information into Power BI.  I am presenting the information required, however the customer would like to color code the results (red for down and yellow for unhealthy).  The dashboard is reporting both the down and unhealthy objects being reported in SCOM. 

1.  Is this possible?

2.  Any other creative ideas on how color code these results?

 

Thanks,

 

Chad Myers

Power BI Noob

  • chadmyers

     

    1. Is not possible applied conditional format to text only values.

     

    2. A solution maybe is:

     

    Create a calculated column with numbers according to your status:

     

    Color = SWITCH(Tabla1[STATUS];"DOWN";1;"UNHEALTHY";2;3)

     

    3: Next in a table:

     

    Put Display name and Average of Color

     

    4. With conditional format select colors to 1;2 and 3.

     

    5. Adjust the width of colum to hide the headers.

     

     

2 Replies

  • Vvelarde's avatar
    Vvelarde
    Community Champion

    chadmyers

     

    1. Is not possible applied conditional format to text only values.

     

    2. A solution maybe is:

     

    Create a calculated column with numbers according to your status:

     

    Color = SWITCH(Tabla1[STATUS];"DOWN";1;"UNHEALTHY";2;3)

     

    3: Next in a table:

     

    Put Display name and Average of Color

     

    4. With conditional format select colors to 1;2 and 3.

     

    5. Adjust the width of colum to hide the headers.