Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
taylor_jesse
Creator
Creator

Qlikview Date Color Change setup

Hi,

I am trying to set a back ground color for a date to turn yellow if its within two months but once the due date is past then I want it to turn white. I used the expression below but it stays yellow even if the date is past due.

For instance already past days are still yellow. I inserted the expression in the background color definition.

if([Contract Renewal Date]<=today()+ 60, Yellow(), White())

Thank you

25 Replies
taylor_jesse
Creator
Creator
Author

Passed dates are still showing Yellow. I will only want current upcoming dates within 6 months to show yellow

agomes1971
Specialist II
Specialist II

Please see attached.

Thanks

André Gomes

taylor_jesse
Creator
Creator
Author

Your expression is not picking up the right cells. For instance the second row is suppose to be highlighted red since the date is within 6n months away. When I change your sign to "<=" , no cells are highlighted. The goal is to highlight up coming contract renewal date that is within 6 months away so less than or equal to today plus 6 months.

But once the date is past then the highlight should be off. So future and current dates only should be highlighted

Thank a lot for your help.

agomes1971
Specialist II
Specialist II

Hi,

hope this it:

=if([Contract Renewal Date] >= Today() and [Contract Renewal Date] <= addmonths(Today(),6), LightRed(), White())

taylor_jesse
Creator
Creator
Author

Thanks for your help

agomes1971
Specialist II
Specialist II

Glad to help!

Regards

André Gomes