Forum Discussion
Anonymous
8 years agoNot applicable
Conditional formatting for a text column
Hi PBI community, Is there a way to change the background or font color of a table cell for a text based column using DAX. Any help would be appreciated. Thank you!
LiamWhite
5 years agoAdvocate I
This post provides one method: https://exceleratorbi.com.au/conditional-formatting-with-a-text-field-in-power-bi/
The DAX is essentially:
Colour Test =
VAR Dept = SELECTEDVALUE(Projects[Department])
RETURN IF(Dept <> BLANK(), "Green", "Red")