Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
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
kfoudhaily
Partner - Creator III
Partner - Creator III

you should use the fonction date#(field,'dd/mm/yyyy')

to check for the difference please go to the following link: Date() vs Date#()

QlikView Qlik Sense consultant
taylor_jesse
Creator
Creator
Author

When I use that function in the script, no values show at all in the straight table I did

date#([Contract Renewal Date],'dd/mm/yyyy') as [Contract Renewal Date]

taylor_jesse
Creator
Creator
Author

if(rangesum(before(if([Contract Renewal Date]<=(today()+60),0,ColumnNo()))=0,yellow())


Everything turned yellow


agomes1971
Specialist II
Specialist II

Hi,

please share a small sample.

Thanks

André Gomes

taylor_jesse
Creator
Creator
Author

How do I share a sample without sharing the whole document?

agomes1971
Specialist II
Specialist II

Hi,

just share a excel with little and scrambled data.

HTH

André Gomes

taylor_jesse
Creator
Creator
Author

Unable to attach any file just images, videos and links.

agomes1971
Specialist II
Specialist II

Make reply go to advanced editor!

taylor_jesse
Creator
Creator
Author

Please see the attached file. I will like to make the background color yellow for contract renewal date that are 6 months away but once the date is passed then it should turn back to white.

Thank you

agomes1971
Specialist II
Specialist II

Hi,

use this expression:

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

HTH

André Gomes