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

Conditional Show

Dear All,

I have a text box that I want to show based on a condition but it is not working. Am i missing something???

IF(DATE(ReloadTime(), 'DD/MM/YYYY') = DATE(Today(), 'DD/MM/YYYY'), 0, 1)

19 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I would use Today(2) -- date document was opened -- as more efficient. So either:

=Floor(ReloadTime()) <> Today(2)

or

=NOT InDay(ReloadTime(), Today(2), 0)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Not applicable
Author

No luck with one I have found One that it works if i go to font> calculated then use the expression however with the text box that displays a warning icon i have no luck

Not applicable
Author

No luck with one I have found One that it works if i go to font> calculated then use the expression however with the text box that displays a warning icon i have no luck

Not applicable
Author

For the warning Icon I went with =IF(Floor(ReloadTime()) < Today(2), 'qmem://<bundled>/BuiltIn/cross_r.png', '')

Not applicable
Author

For the warning icon i used =IF(Floor(ReloadTime()) < Today(2), 'qmem://<bundled>/BuiltIn/cross_r.png', '') and it works

jyothish8807
Master II
Master II

Hi Bruce,

What is the frequency of your load ? If it is daily then daily "DD/MM/YYYY' would be enough. If the frequency of the load is more than twice in a day then you will require time stamp to compare both reload time and today().

Regards

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Hi Bruce,

Pfa sample. Hope this is you are looking for.

Regards

KC

Best Regards,
KC
leni_harishwara
Partner - Contributor III
Partner - Contributor III

Hi,

Instead of converting to Date, convert it to num (used floor and it contains decimal values) and do the comparison it will work as expected,

=IF(Floor(ReloadTime()) = Floor(Today()), 0, 1)

Regards,

Leni

Not applicable
Author

Hii

Try this one. It works 100%

=IF(

Floor( num(DATE(ReloadTime(),'DD/MM/YYYY') ) )

=

Floor( num( DATE(Today(),'DD/MM/YYYY')))

,0,1)

Put both conditions in variables if possible and use variable here in comparison.

Thanks in advance.

Regards,

Lalit

susovan
Partner - Specialist
Partner - Specialist

It might be help

=if(Floor(ReloadTime())=Floor(Today()),0,1)

Warm Regards,
Susovan