Hello.
I have a table where I would like to highlight entire rows different colors based on 3 choices from the same field.
I have one choice highlighted, but not sure how to include the other two, which would have a different highlight. Any suggestions would be appreciated.
Here is a little snapshot of my code
// Highlight descriptions with a keyword
var keyword = 'DAC';
// Use Find() to determine the index of the word
var hasKeyword = Find(keyword, Upper($datapoint["Status"])) >= 0;
// Update text and background colors if it has the keyword
return {
cells: {
GridID: {
displayText : Text($datapoint.GridID),
textColor: IIF(hasKeyword, '#000000', ''),
backgroundColor: IIF(hasKeyword, '#BDD7EE', ''),
textAlign: 'center',
iconName: '',
iconAlign: '',
iconColor: '',
iconOutlineColor: ''