Forum Discussion
Conditional formatting not working with SWICH
Hi all,
From the table above, you can see the first column is colored orange, but it should be white.
Here below is the conditional formatting that I have set up. I have also tried changing the summarization to max and other parameters without success.
Any help?
Anonymous , create measure like and try conditional formatting with field value option
isStatus_Color_Background_BetaOrPlanned = SWITCH(max(components[status]),
"b", "red"
,"s", "green"
, "p","Blue" )
refer for steps
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
3 Replies
- amitchandakSuper User
Anonymous , create measure like and try conditional formatting with field value option
isStatus_Color_Background_BetaOrPlanned = SWITCH(max(components[status]),
"b", "red"
,"s", "green"
, "p","Blue" )
refer for steps
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values- AnonymousNot applicable
Thanks!
I thing to clarify, the measure must be in the table with the filtering letters, otherwise for some reason it doesn't work (the table in the picture I posted was with the actual data), otherwise it doesn't work
- AnonymousNot applicable
Also, why do I need to use MAX in the formula?