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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

now() to show and hide text box

Hi all

Has anyone tried to show and hide a text box for a particular hour depending on the time of the day using now() function.

Example: in the Text box conditional layout I have date(now(),'hh')=15 when the time is 15:09:10 the text box disappears. Weird!!

Regards

Koushik Vutha

5 Replies
its_anandrjs
Champion III
Champion III

Hi,

In the layout properties write like

=if( date(now(),'hh:mm:ss') = '15:09:10',0,1)



Regards

Anand



lironbaram
Partner - Master III
Partner - Master III

you can use

floor(frac(now())*24) =15

datanibbler
Champion
Champion

Hi,

what about trying the TIME() function?

Best regards,

DataNibbler

MarcoWedel

Hour(Now())=15

MarcoWedel

or as a string comparison, maybe


Text(Date(now(),'hh'))='15'