Hi,
I am trying to update a formula for a graphical indicator that I am using in a project file. The indicator calculates:
- tasks that are 100% complete, shows a green check mark
- tasks that have a finish date 30, 60, or 90 days from the current date, show a red, yellow or green stoplight (see the picture at the bottom and the formula below)
IIf([% Complete]=100,"Complete",IIf(DateDiff("d",[Current Date],[Finish])<=30,"30",IIf(datediff("d",[Current Date],[Finish])<=60,"60",IIf(datediff("d",[Current Date],[Finish])<=90,"90",0))))
I am trying to add an element that accounts for past due tasks, or a task where the finish date past the current date. I found the following formula online, but I have not been able to correctly modify it to calculate past due tasks, or combine it with the formula above to make one indicator. Thanks in advance for any suggestions!!
Switch(Date()<=[Finish] And [% Complete] <100,”Should Have Finished”, Date ()<=[Start],””, Date()<=[Finish],"")