Here are steps:
1.Click "Last DOT inspection date" column -> Column settings -> Format this column -> Advanced mode.
2.Using following codes.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if([$LastDOTinspectiondate] < addDays(@now,-365), 'red', if([$LastDOTinspectiondate] < addDays(@now,-335), 'yellow','green'))"
}
}
3.Click "Last DOT inspection date" column -> Column settings -> Format this column -> Advanced mode.
4.Using following codes.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if([$LastBITinspectiondate] < addDays(@now,-90), 'red', if([$LastBITinspectiondate] < addDays(@now,-60), 'yellow','green'))"
}
}
5.Result:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.