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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

conditional formatting

if(reloadtime()=today()

can someone see whats wrong with the above expression/

4 Replies
rustyfishbones
Master II
Master II

you are missing ) at the end

So something like

IF(ReloadTime()=TODAY(),GREEN(),RED())

Anonymous
Not applicable

Samuel

reloadtime() returns a datetime, whereas today() returns just a date.

So use :

     if ( date(floor(reloadtime())) =today()  ..................

Which converts reloadtime()  to a pure date.

Best Regards,  Bill Markham

Not applicable

reloadTime() return the day AND the time the document was reloaded, and today() return only todays day. You should better use:

Date(Floor(ReloadTime()))=today()

jpapador
Partner - Specialist
Partner - Specialist

My guess would be that reloadtime() is a time stamp and Today() is just a date.  Use the date function to get them into the same format.

If(Date(Floor(ReloadTime()), 'M/DD/YYYY') = Date(Floor(Today()), 'M/DD/YYYY'), <Condition Here>)