Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Color Cell in Straight Table if cell date is greater than 6 months from today's date

I am trying to get the background expression to change to red if the date that is showing in the straight table is greater than 6 months from todays date.

The expression listed below is what I have been work with no success.

({$<PART_RECEIVED_MMonth={"$(=Date(AddMonths(Max(PART_RECEIVED_MMonth),-6),'MMM-YY'))"}>}LightBlue())

Any assistance would be much appreciated

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Not sure I completely understand the requirement, but something like this will tell you whether or not the PART_RECEIVED_MMonth field is greater than 6 months from today:


if( date(PART_RECEIVED_MMonth) > date(addmonths(today(), 6)), red())

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Not sure I completely understand the requirement, but something like this will tell you whether or not the PART_RECEIVED_MMonth field is greater than 6 months from today:


if( date(PART_RECEIVED_MMonth) > date(addmonths(today(), 6)), red())

settu_periasamy
Master III
Master III

Hi,

You can't directly use the Color (LightBlue) in your set expression.

({$<PART_RECEIVED_MMonth={"$(=Date(AddMonths(Max(PART_RECEIVED_MMonth),-6),'MMM-YY'))"}>}LightBlue())

May be try something like

If (YourDateField > Date(AddMonths(Today(),6)),Red(),LightBlue())