<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 1 script, 3 tables with 3 different load times in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463114#M1165798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Whiteline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this information.&amp;nbsp; I have been playing around with your concept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a QVD file and on the server I am reloading every 3 minutes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a QVW file which is looking at the QVD file which loads every 3 minutes.&amp;nbsp; On the server I am getting this file to LOAD "on event of another task" being succesful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mention that if I have QVW's which take longet than 5 minutes to LOAD, there could be problems.&amp;nbsp; I will have this scenario come up and wondered how this could be solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 11:14:27 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2012-11-08T11:14:27Z</dc:date>
    <item>
      <title>1 script, 3 tables with 3 different load times</title>
      <link>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463111#M1165795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ihave 3 tables in one script, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 needs to load every 5 minutes&lt;/P&gt;&lt;P&gt;1 table needs to load every week &lt;/P&gt;&lt;P&gt;and another table needs to laod every month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I go about getting these tables to refresh at different intervals of time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice is greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463111#M1165795</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2012-10-29T14:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: 1 script, 3 tables with 3 different load times</title>
      <link>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463112#M1165796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create three qvw files that create corresponding tables and store them into qvd files ('qvd creators').&lt;/P&gt;&lt;P&gt;Use this files to setup automatic or manual reload with intervals you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create another qvw file that use stored qvd files as source.&lt;/P&gt;&lt;P&gt;This should be reloaded imidiately after the one that reloads every minute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be a problem with reload states when the shorter reload takes more than 5 minutes... but it also can be solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 19:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463112#M1165796</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-29T19:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: 1 script, 3 tables with 3 different load times</title>
      <link>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463113#M1165797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elen_pip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think whiteline's answer is the best approach. However you can set different reload of tabs using some code.&lt;/P&gt;&lt;P&gt;I have a document that is scheduled every hour. The document has various Tabs (in each Tab there is the script for a table) and for one specific Tab I want to reload the data only at 6 and 7 am.&lt;/P&gt;&lt;P&gt;In my first Tab I check what time is it and I raise a flag if it is 6 or 7 am. Then my specific tab will run only if the flag = 1. You can reuse this code for days, weeks, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first tab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;LET vReloadStart = now();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;LET vSpecialReload = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;IF hour(vReloadStart) = 6 or hour(vReloadStart) = 7 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vSpecialReload = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the code of my specific Tab is inside this instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;IF vSpecialReload = 1 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load ......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store .......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 17:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463113#M1165797</guid>
      <dc:creator />
      <dc:date>2012-10-30T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: 1 script, 3 tables with 3 different load times</title>
      <link>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463114#M1165798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Whiteline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this information.&amp;nbsp; I have been playing around with your concept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a QVD file and on the server I am reloading every 3 minutes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a QVW file which is looking at the QVD file which loads every 3 minutes.&amp;nbsp; On the server I am getting this file to LOAD "on event of another task" being succesful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mention that if I have QVW's which take longet than 5 minutes to LOAD, there could be problems.&amp;nbsp; I will have this scenario come up and wondered how this could be solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463114#M1165798</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2012-11-08T11:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: 1 script, 3 tables with 3 different load times</title>
      <link>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463115#M1165799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Well here is the way I will do this (Assuming that you store QVDs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;1 - Create a QVW file and let us name it as ETL.QVW&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;2 - The QVW will be scheduled to run on every 5 minutes interval.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;3 - "1 needs to load every 5 minutes" --&amp;gt; No need for any if statement before the LOAD statement of this table.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;4 - "1 table needs to load every week" --&amp;gt; I will read from the stored QVD and check when it was last updated, IF TODAY() - LAST_UPDATE &amp;gt;= 7 days THEN LOAD ELSE Ignore.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;5 -&amp;nbsp; "and another table needs to laod every month" --&amp;gt; The same as above but I will check if its 30 days? or 29 days..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;You may require an additonal column in the QVDs with LAST_UPDATE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;MultiView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-script-3-tables-with-3-different-load-times/m-p/463115#M1165799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-08T11:52:07Z</dc:date>
    </item>
  </channel>
</rss>

