Hello-
I am trying to JSON format my SharePoint list updated by Power apps, my issues is while two columns appear exact that are not due to differing column types and the way the data is created. I would like to say if column contains value in other column then do not highlight. I also want to add into my formula if other column is blank do not highlight. The main column is the column without PV in the name, the PV first columns are created through a Power Apps flow to get previous value of a sharepoint column here is an example, these shouldn't be highlighted as visually they are the same. The export has a return or extra spaces after the PV value making them not equal hence the color coding activated.
Sharepoint List
Control #:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"attributes": {
"class": "=if(@currentField != [$PV_Control_x0023_],'sp-css-backgroundColor-blueBackground37', '')"
}
}
PV_Control#
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"attributes": {
"class": "=if(@currentField != [$Control_x0020__x0023_],'sp-css-backgroundColor-blueBackground37', '')"
}
}