Forum Discussion

EpicTriffid's avatar
EpicTriffid
Helper IV
6 years ago
Solved

Conditional Formatting not working

I'm trying to set conditional formatting in a table. Because of the different data types, two fields (Tar Diff and Int Tar Diff) have been combined in a measure with the correct formatting so that th...
  • EpicTriffid's avatar
    EpicTriffid
    6 years ago

    Hi v-lid-msft,

     

    Unfortunately that just made everything blank in terms of colour!

     

    I did, however, find a solution:

     

    TarKPIColour = 
    IF ([Int Tar Diff] <> "" || [Tar Diff] <> "",
    IF ([Tar Diff] >= -0.005 && [Int Tar Diff] >= 0.5, "#30a316", "#d10a14"))

    Not entirely sure why, but it works!