Hello,
I've googled this and used the recommended code, and the green/red was working but not the yellow. So I've been trying to fiddle with it and it's just not working, if someone can correct me. I have a field (Thisitem.CatETExp) with a date. I want it to change colors based on the comparison to today:
If over 30 days = green.
If less than 30 days, but greater than 1 = yellow
If today or past due = red
I was trying this from google
If(
DateDiff(ThisItem.CatETExp, Today()) <= 7,
Color.Green,
DateDiff(ThisItem.CatETExp, Today()) > 7 && DateDiff(ThisItem.CatETExp, Today()) <= 30,
Color.Yellow,
DateDiff(ThisItem.CatETExp, Today()) > 30,
Color.Red
)
For some reason the green/red were working but it makes no sense to me, cause it looks like its saying if its due in 7 days or less its green? But the yellow was not working 😞