So i gotten to the point where it works for one column but not he next one...
This one is for the colum "Genehmigung" and works as inteded if it is standalone:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"font-weight": "=if(@currentField <= @now - 518400000, 'bold', if(@currentField <= @now - 259200000, 'semi-bold', 'normal'))",
"background-color": "=if([$GebuchtSEN] != '', 'transparent', if(@currentField <= @now - 518400000, 'red', if(@currentField <= @now - 259200000, 'orange', 'green')))",
"padding-left": "14px"
}
}
This one is for the column "Booked" and should, if a value in "Paid" (here BezahltSEN) is added not meet the condition. but when i enter the code the background remains red/orange/green. If i then delete the entry in "BezahltSEN" the background remains - and in a new entry neither coloring works suddenly
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"font-weight": "=if(@currentField <= @now - 518400000, 'bold', if(@currentField <= @now - 259200000, 'semi-bold', 'normal'))",
"background-color": "=if([$BezahltSEN] != '', 'transparent', if(@currentField <= @now - 518400000, 'red', if(@currentField <= @now - 259200000, 'orange', 'green')))",
"padding-left": "14px"
}
}