Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rustyfishbones
Master II
Master II

Change Background color IF Time is late

Hi All,

I have the following to change the color if a finish time is greater that 17:00, however it's not working

2014-03-03_0950.png

my variable is working fine as it is returning the correct finish time, but the color is not changing

Any ideas?

Regards

Alan

1 Solution

Accepted Solutions
Not applicable

What if you did like this:

if(Hour($(estimatede.finish.time.picking)) >= 17.red(),green())

View solution in original post

7 Replies
sreenivas
Creator III
Creator III

check the Format of the variable

Not applicable

What if you did like this:

if(Hour($(estimatede.finish.time.picking)) >= 17.red(),green())

amit_saini
Master III
Master III

Hi Alan,

Write this script over here:

Thanks

AS

Not applicable

hi

try to keep both in same format.

or try this

if(num(time('=$(estimated.finish.time.picking)','hh:mm:ss')'))>=num(time('17:00:00','hh:mm:ss'),Red(),Green())

rustyfishbones
Master II
Master II
Author

Thanks Thomas,

I should have known to try that!!

Regards

Alan

Not applicable

Is it possible that estimated.finish.time.picking holds whole date while 17:00:00 doesn't?

I'd probably go for numeric comparison instead of strings

MK_QSL
MVP
MVP

=IF(HOUR(NOW())>9,Green(), RED())

Change as per your requirement and fields