Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to highlight cell in a specific colour

Hello,

I have read multiple threads about cell highlighting certain colours, but the issue I am facing is actually writing the expression. I have a table with technology names and dates of when the technology will start its retire lifecycle and when it ends.

Eg.

TechnologyNameLifecyclePhaseRetire_StartDateRetire_EndDate
SAN SwitchRetire19/12/201307/10/2014
PowerEdgeRetire15/11/201302/02/2014
TapesLegacy05/03/201401/04/2014
Windows ServerRetire07/10/2014

07/10/2016

When the Retire_EndDate is within 70 days or less from today, I want the background of the cell to highlight red, otherwise it will stay green. I've achieved this on different platforms using something something along the lines of "DateDiff("day",Date(DateTimeNow()),[Retire_EndDate])<70" However Qlikview does not accept DateDiff.

Can anyone help with the expression in how to do this and incorporate colour?

Many thanks.

11 Replies
Not applicable
Author

Thank you everyone for your feedback. I managed to get the colour working as expected. Really grateful!

Kind regards, Thuy

kiranmanoharrode
Creator III
Creator III

Hi Thuy,

Use following expression in background of Retire_EndDate Dimension. this will solve.

=if(Num(Today())-Num(Date(Retire_EndDate,'DD/MM/YYYY')>'70',Red(),Green())

Regards,
Kiran Rode

+91 8976977897