Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
m_perreault
Creator III
Creator III

Partial Reload by Hour of Day

Hi All,

My script has two sections which each read from a different datasource

Section 1:

Takes 10 minutes and the data is only updated once a day (overnight)

Section 2:

Takes 1 minute and updates hourly.

I'd like to set a reload task to reload this app once every hour but after a certain time of day say 7 am, I only want to reload Section 2 because Section 1 is static.


Does anyone have any ideas on how to accomplish this.

Thanks!
Mark

1 Solution

Accepted Solutions
juraj_misina
Luminary Alumni
Luminary Alumni

Hi Mark,

in that case store results of section 1 into QVD files and load those QVD files in section two.

Juraj

View solution in original post

5 Replies
juraj_misina
Luminary Alumni
Luminary Alumni

Hi Mark,

in your script set up a condition to navigate script execution to corresponding section. Something like:

If(Hour(Now()<7) then

//section one

Else

//section two

EndIf

Hope this helps.

Juraj

m_perreault
Creator III
Creator III
Author

Thanks Juraj however wouldn't this mean that after 7 the data from Section 1 will no longer be in the application?  I only want to load Section 2 after 7 but I still want all the data from Section 1 to remain.

Thanks,

Mark

juraj_misina
Luminary Alumni
Luminary Alumni

Hi Mark,

in that case store results of section 1 into QVD files and load those QVD files in section two.

Juraj

dapostolopoylos
Creator III
Creator III

Try:

LOAD

*

FROM

    Section1;

IF (Hour(Now()>7) THEN

LOAD

     *

FROM

     Section2;

ENDIF;

Father/Husband/BI Developer
m_perreault
Creator III
Creator III
Author

That's the route I think I am going to take thanks Juraj