Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
New-here1
Contributor III
Contributor III

RAG status on dates

Hello,

I have the following code:

if([End Date]<Today(),red,
if([End Date]>7,today() and [End date]<30,today(),amber,
if[End Date]>30,today,green

The first line to show everything in red that is today's dates or less
The second line to show everything in amber that is due end in 7 days or more but less than 30 days
The third line to show everything in green that is due to end in more than 30 days

The above isn't working for me and I'm not how why. Could someone help please?

Thank you

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

if([End Date]<Today(), redcolor, 

if([End Date]<Today() + 30 and [End Date]>Today() + 7, ambercolor,

if([End Date]>Today() + 30, greencolor)))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Try like below

if([End Date]<Today(), redcolor, 

if([End Date]<Today() + 30 and [End Date]>Today() + 7, ambercolor,

if([End Date]>Today() + 30, greencolor)))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
New-here1
Contributor III
Contributor III
Author

This worked, thank you!