Forum Discussion

dirkkoch's avatar
dirkkoch
Icon for Helper III rankHelper III
3 years ago
Solved

Conditional formatting with measure for font color (date column value blank and not blank)

Hi,    I have a calculated date column (column name: hexcode) and I want to create a measure which sets the hex code to a data card visual to font color white (#ffffff) if it is blank and to font c...
  • Uspace87's avatar
    3 years ago

    Hi,

     

    What I would do is to create a calculated column that return the colour:

     

    Date Formatted = IF(Date_Table[Date]=BLANK(),"#ffffff", "#f8f32b")
     
    Then in the "Callout Value section" of your Card you can set to change the colour based on the Calculated column you have created:
     

     

  • dirkkoch's avatar
    dirkkoch
    3 years ago

    Uspace87  That seems to do the job. Thanks!