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: 
pkelly
Specialist
Specialist

Help with Variable

We have a large TV in our Sales Office which runs a single report with 7 sheets…

The sheets rotate by utilising the show sheet conditional option and a variable (varReportView) e.g. varReportView='1'

The variable is set using the following which is basically a 2 minute loop….

=IF(Odd(Minute(now())) = 0 AND Second(now()) >= 0 AND Second(now())= 20 AND Second(now())= 40 AND Second(now())0 AND Second(now()) >= 0 AND Second(now())0 AND Second(now()) >= 15 AND Second(now())0 AND Second(now()) >= 30 AND Second(now())0 AND Second(now()) >= 46 AND Second(now())

We want to add more sheets to the report and need to now look at increasing this loop to three minutes…

Any suggestions on how I could achieve this?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can use Mod() function instead odd() / even().

View solution in original post

5 Replies
swuehl
MVP
MVP

I think you got a copy&paste issue here, your expression is not syntactically correct.

I also don't understand why you use  Second(now()) = 20 and Second(now()) = 40, since this is never true.

pkelly
Specialist
Specialist
Author

Thanks swuehl - yes something has gone wrong with copy and paste - am having issues posting to the forum from my browser - will upload a sample application...

pkelly
Specialist
Specialist
Author

Please find attached example application....

swuehl
MVP
MVP

You can use Mod() function instead odd() / even().

pkelly
Specialist
Specialist
Author

Thank you...spot on...