I am trying to color code a Row based on a condition in a Modern List (SPO). It goes something like this:
In English: If ApprovalStatus = 'Pending' AND 'RequestDate' < [Today]-5 Then Row Color = 'Red'
This is what I have so far, but it does not work.
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if(AND[$ApprovalStatus] == 'Pending', [$RequestDate] < [Today]-5), 'sp-field-severity--severeWarning','')"
}