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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reset time variable after reload

Hello,

So I have a variable that holds a 1 sec counter. That variable is defined in the variable overview tool as

timer = round((now()-now(2))*86400)

With this I effectively have a 1 sec counter, but after reload it does not reset its value to 0.

How can I reset the variable value to 0 and then keep counting?

I have tried to work with variable sets after reload, but the value remains always on 0.

Ideas?

Best regards,

Ivo Marques

Labels (1)
1 Solution

Accepted Solutions
pokassov
Specialist
Specialist

Hi!

Try this:

=round((now()-ReloadTime())*86400)

View solution in original post

2 Replies
pokassov
Specialist
Specialist

Hi!

Try this:

=round((now()-ReloadTime())*86400)

Not applicable
Author

Thanks, it works out for what I want.