Forum Discussion
Sonia316
4 years agoHelper I
Conditional formatting for one column based on value in another table
I have this table here: Profile is a SharePoint field drop down. I have a profile master list that stores all of the data for the stoplight values for each profile. I want to color code t...
Sonia316
4 years agoHelper I
I'm using this as my JSON in SharePoint
"background-color": "=if(@currentField == '', 'rgba(0, 0, 0, 0.3)', if(@currentField < [$Profile_x003a_IRVWidthA], 'rgba(240, 52, 52, 1)', if(@currentField <= [$Profile_x003a_IRVWidthB], 'rgba(255, 255, 126, 1)', if(@currentField < [$Profile_x003a_IRVWidthC], 'rgba(255, 255, 255, 1)', if(@currentField <= [$Profile_x003a_IRVWidthD], 'rgba(255, 255, 126, 1)', 'rgba(240, 52, 52, 1)')))))"
},