Forum Discussion

WJ876400's avatar
WJ876400
Helper IV
7 years ago
Solved

color Formatting

  Hi   I have two columns on a table, like below. I want to color the column hours completed so that if the hours are the same or higher then target hours it is green and if it is below the target...
  • TeigeGao's avatar
    7 years ago

    HI WJ876400 ,

    In your scenario, we can create a measure to judge the situation like below: 

    Measure =
    IF ( MIN ( 'Table'[Target Sales] ) > MIN ( 'Table'[Sales Completed] ), 1, 0 )

    Then in the Conditional Formatting, we can set the rule for the Sales Completed column:

    Then click the Advanced controls, set the rule:

    The result will like below:

    Best Regards,

    Teige

  • TeigeGao's avatar
    TeigeGao
    7 years ago

    Hi WJ876400 ,

    I make a measure on the same table.

    Best Regards,

    Tiege