Forum Discussion
Conditional formatting based on two values
jgdgsf2 , You have to use a unichar measure, where you choose a symbol based on the condition, and then a color measure to do font formatting using the field value option
example
/////Arrow
Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)
/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)
You have to get right unichar https://exceleratorbi.com.au/dax-unichar-function-power-bi/
https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692
- jgdgsf23 years agoFrequent Visitor
Hi,
Thanks for your response, but this seems like it'll only work for the "Adoption" measure - I need a rule that works when both "Leavers" and "Exit Interviewees" = 0, show a neutral icon. If not, continue following my conditional formatting rules based on "Adoption" being > or < 10%.