Forum Discussion

Peter_2020's avatar
Peter_2020
Helper III
5 years ago
Solved

Conditional formatting based on value in another column

Hi all, 

I would like to ask you for help with following issue:

 

I have the table with 3 columns:

CATEGORYTARGETPERFORMANCE
1110%109%
2115%110%
3130%140%

 

And I need to somehow define the rules for conditional formatting (or other formatting) that if the performance of category 1,2 or 3 is lower than target in the same line put the cells background to red and if the performance of category 1,2 or 3 is higher than target put it green. Expected result is shown here:

 

CATEGORYTARGETPERFORMANCE
1110%109% (red background)
2115%110% (red background)
3130%140% (green background)

 

Thanks in advance for your help!

P

  • Peter_2020 , Try like

     

    if(max(table[PERFORMANCE]) <Max(Table[TARGET]) , "Red", "Green")

     

    or

     

    if(average(table[PERFORMANCE]) <average(Table[TARGET]) , "Red", "Green")

5 Replies