<?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 Full day reload help ??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081356#M638528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below script for generating QVD over the weekends for the full week , in case I have missed the data for any weekday!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;Let vLoadFrom = timestamp(If(Weekday($(vLAST_LOAD_TIME)) &amp;gt;= 5, WeekStart($(vLAST_LOAD_TIME)), $(vLAST_LOAD_TIME)), 'DD.MM.YYYY HH24:MI:SS');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STICHPROBE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vPlant)' as Plant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NSPCIDNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NTOOLNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NSTPNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NPERS_IDNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(vPlantAutor).STICHPROBE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;WHERE DTTSERF &amp;gt; to_timestamp('$(vLoadFrom)', 'DD.MM.YYYY HH24:MI:SS');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store STICHPROBE into $(vQVDCurrentYear)\$(vPlant)_STICHPROBE.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I'm looking for is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose when I have triggered QVD Generator @ 6:00 AM , this might have missed some data which was made available&amp;nbsp; later this day@9:00 PM inside database. So to support these cases of database update issue , is there any solution with the above script where I can write :&lt;/P&gt;&lt;P&gt;"Each day @ 11:00 PM , I want a full load for fetching data from database for the full day and store as QVD"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if this approach is possible or not???&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 11:33:15 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2016-02-22T11:33:15Z</dc:date>
    <item>
      <title>Full day reload help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081356#M638528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below script for generating QVD over the weekends for the full week , in case I have missed the data for any weekday!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;Let vLoadFrom = timestamp(If(Weekday($(vLAST_LOAD_TIME)) &amp;gt;= 5, WeekStart($(vLAST_LOAD_TIME)), $(vLAST_LOAD_TIME)), 'DD.MM.YYYY HH24:MI:SS');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STICHPROBE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vPlant)' as Plant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NSPCIDNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NTOOLNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NSTPNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NPERS_IDNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(vPlantAutor).STICHPROBE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;WHERE DTTSERF &amp;gt; to_timestamp('$(vLoadFrom)', 'DD.MM.YYYY HH24:MI:SS');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store STICHPROBE into $(vQVDCurrentYear)\$(vPlant)_STICHPROBE.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I'm looking for is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose when I have triggered QVD Generator @ 6:00 AM , this might have missed some data which was made available&amp;nbsp; later this day@9:00 PM inside database. So to support these cases of database update issue , is there any solution with the above script where I can write :&lt;/P&gt;&lt;P&gt;"Each day @ 11:00 PM , I want a full load for fetching data from database for the full day and store as QVD"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if this approach is possible or not???&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 11:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081356#M638528</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-02-22T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Full day reload help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081357#M638529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Frac(Now(1)) &amp;gt;= 23/24) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do full reload&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do incremental load&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 16:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081357#M638529</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-22T16:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Full day reload help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081358#M638530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But could you please help me with complete script taking "STICHPROBE" as an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 04:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081358#M638530</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-02-23T04:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Full day reload help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081359#M638531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;While you pass a qv variable to SQL engine, the evaluation of variable still gets done by QV and the resultant is sent to SQL engine. That means, your variable definition:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: yellow;"&gt;Let vLoadFrom = timestamp(If(Weekday($(vLAST_LOAD_TIME)) &amp;gt;= 5, WeekStart($(vLAST_LOAD_TIME)), $(vLAST_LOAD_TIME)), 'DD.MM.YYYY HH24:MI:SS');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: yellow;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;is supposed to be evaluated by QV. But the time stamp format &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffff00;"&gt; 'DD.MM.YYYY HH24:MI:SS'&lt;/SPAN&gt; is &lt;STRONG&gt;unknown to QV&lt;/STRONG&gt;. So you don't get the desired output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 05:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Full-day-reload-help/m-p/1081359#M638531</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-23T05:11:16Z</dc:date>
    </item>
  </channel>
</rss>

