Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing background image after every 3 sec

Hi All,

Is it possible to change image after every 5 sec in Qlikview.

Regards,

Gaurav

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi Gaurav,

Please find attached.

HTH

Sushil

View solution in original post

12 Replies
sushil353
Master II
Master II

Do you want to switch between 2 to 3 images or random?

Not applicable
Author

Both would be helpful.

I have four images and i need to show then one after another but 2 sec interval should be there.

sushil353
Master II
Master II

Hi Gaurav,

Please find attached.

HTH

Sushil

Not applicable
Author

Hi Sushil,

Yes i wanted the same thing.

Can you please explain how you have done this?

Basically the function.

Regards,

Gaurav

shreyashetty_ge
Contributor II
Contributor II

Hi Sushil,

Can you explain the condition that you have applied the application what it actually does

(mod(round((now()-now(2))*86400),6),4,5)

Thanks..

sushil353
Master II
Master II

Hi Garuav,

For your better understanding you can use

=Match(mod(Second(now()),6),4,5)

in the function above mod(Second(now()),6) will return values between 0,1,2,3,4,5

now Match function will return values when it matches the defined values.. as in the above case 4,5 else it will return null..

This is the smart trick

HTH

Sushil

Not applicable
Author

Hi Sushil,

Your idea is brilliant, thanks for sharing.

Hi Shreya,

Not sure whether you get it properly, there are 3 text objects and at any point of time only 1 will be in visible mode.

1. now() - now(2) mod 6 will return a number between 0 to 5 every seconds

2. Match() is used, so that if result of above function is 0 or 1, first text object will be shown, if result is 2 or 3 second object will be visible, similarly for 3rd obejct if result is 4 or 5.

Best regards,

Gowri Shankar

Not applicable
Author

Guys,

Can any one tell me what now(2) does?

Regards,

Gaurav

shreyashetty_ge
Contributor II
Contributor II

Awesome!!!!

Thanks for explanation