Hello,
Having issues trying to get this to work. I am in dashboard using list widget, advanced formatting. The goal is if
#1. postdate > 48 hours, background changes to red.
#2. but if postdate is empty or if there is a close date, do nothing
#3. also if there is no postdate or no close date, do nothing.
I can get a part of it to work but not all of it. I have tried using IIF and WHEN.
What I have tried and the results. All help is appreciated. Thank you.
var pastduecolor = IIF(IsEmpty($datapoint.campclosedate) && (currentdate > twodayslater), " ", "#BE2528")
When using the above #1, #3 work
var pastduecolor = IIF((currentdate > twodayslater)," ", "#BE2528")
When using the above #2, #3 work
var pastduecolor = IIF(!IsEmpty($datapoint.campclosedate) && (currentdate > twodayslater), " ", "#BE2528 ")
When using the above # 1, #2 work
var pastduecolor = When(IsEmpty($datapoint.campclosedate) && (currentdate > twodayslater), "#BE2528", IsEmpty($datapoint.firstpostda1) && IsEmpty($datapoint.campclosedate), " ", " ")
When using above #1, #2 work
Thank you very much,
Annette