Forum Discussion
sy898661
7 years agoHelper V
Help with DAX changing colors
Hi! I am trying to change the color of cells in a Table visual based off of some criteria, and althought I have not learned DAX, I have attempted to write a measure to help with this. Can someone...
- 7 years ago
If you add a calculated column to your data table:
the_color = IF(AND( MyData[PlannedDate] < TODAY() , ISBLANK(MyData[ActualDate]) ) , "#112233" , "#00AA00")
You can then use the conditional formatting option in the table visualization for the Actual Date column to set its background colour to the value of the "the_colour" calculated column.
Hope this helps.
BeeBeeJay
7 years agoFrequent Visitor
If you add a calculated column to your data table:
the_color = IF(AND( MyData[PlannedDate] < TODAY() , ISBLANK(MyData[ActualDate]) ) , "#112233" , "#00AA00")
You can then use the conditional formatting option in the table visualization for the Actual Date column to set its background colour to the value of the "the_colour" calculated column.
Hope this helps.