Hi everyone,
I'm trying to change background color based on value but the IIF is not working instead the whole list is giving the background color (both 1 & 2 value). Below is my code
var bgcolor = IIF(DomainName($datapoint,'FHE')==1,'#FF0000','');
return {
textColor: '',
backgroundColor: bgcolor,
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
}
any suggestions
Solved! Go to Solution.
A "domain name" is pretty much always a string, so comparing the domain name to an integer will always give you the result false. Are you meaning to compare the value of the code?
A "domain name" is pretty much always a string, so comparing the domain name to an integer will always give you the result false. Are you meaning to compare the value of the code?
Yes... I tried using the text value which is Yes/No but I still get the same result