Forum Discussion

harib's avatar
harib
Icon for Post Patron rankPost Patron
7 years ago
Solved

Conditional background color based on the other column

Hello Friends,   Is it possible to create background color for column based on the other column  like below table. I have a Target and Performance column. Based on the Target ,performance column b...
  • Greg_Deckler's avatar
    7 years ago

    So, the easiest way to do this would be to create a measure like:

     

    Indicator = 
    VAR __target = MAX('Table'[Target])
    VAR __performance = MAX('Table'[Performance])
    RETURN
    IF(__performance < __target,"Red","Green")

    Then you can base your conditional formatting off of that measure.