Forum Discussion

Fusilier2's avatar
Fusilier2
Helper V
1 year ago
Solved

Why is conditional text formatting so complicated?

Trying to simply colour my value in a KPI visual.   Equal to or Greater than 0 = Green Less than 0 = Red    So far I have this: But what happens if the min is greater than 0 or the max is...
  • AlexTheGreat's avatar
    1 year ago

    Hey,

    I understand the confusion.
    The key thing to remember is that you need a True / True condition for the color change to happen.

    Example 1 (min greater than 0)

    • min: 14

    • max: 50

    • value: 34

    You’ll get:

    • First rule: True / True

    • Second rule: True / False
      → The green color will be applied.

    Example 2 (max less than 0)

    • min: -50

    • max: -2

    • value: -35

    You’ll get:

    • First rule: False / False

    • Second rule: True / True
      → Again, since one of the rules is fully True, the color will be applied.

    Keep in mind: it’s not about the value being in between min and max  these are two separate rules, and both parts of a rule need to be True for the color to be applied.

     

    Hope it helps!