<?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: Script Help ??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988742#M649590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan for the suggestion.&lt;/P&gt;&lt;P&gt;&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, 21 Sep 2015 07:40:20 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2015-09-21T07:40:20Z</dc:date>
    <item>
      <title>Script Help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988740#M649588</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;Below is my QVD Gen script , triggered on hourly basis. Currently I'm facing some issue with the data , sometimes I'm missing some data from the Stichprobe table ,so to avoid this situation what I'm looking is to recreate this qvd over the weekends for the past whole week .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STICHPROBE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vPlant)' as Plant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;NSPCIDNR,&lt;/P&gt;&lt;P&gt;NTOOLNR,&lt;/P&gt;&lt;P&gt;NSTPNR,&lt;/P&gt;&lt;P&gt;NPERS_IDNR&lt;/P&gt;&lt;P&gt;FROM $(vPlantAutor).STICHPROBE&lt;/P&gt;&lt;P&gt;WHERE DTTSERF &amp;gt; to_timestamp('$(vLAST_LOAD_TIME)', 'DD.MM.YYYY HH24:MI:SS');&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;Below is example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today is Monday 21st Sep , so this qvd gen will work as it is triggered currently till Friday midnight&amp;nbsp; , but on Sat or Sun what I'm looking for is to call the data from the complete week starting from 21st till 25th sep .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this task , how can I do this by using above script.&lt;/P&gt;&lt;P&gt;&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, 21 Sep 2015 05:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988740#M649588</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-09-21T05:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988741#M649589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you right, add this line before the load&lt;/P&gt;&lt;P&gt;Let vLoadFrom = If(Weekday(vLAST_LOAD_TIME) &amp;gt;= 5, WeekStart(vLAST_LOAD_TIME), vLAST_LOAD_TIME);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the load where clause, use vLoadFrom:&lt;/P&gt;&lt;P&gt;WHERE DTTSERF &amp;gt; to_timestamp('$(vLoadFrom)', 'DD.MM.YYYY HH24:MI:SS');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 05:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988741#M649589</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-21T05:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help ???</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988742#M649590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan for the suggestion.&lt;/P&gt;&lt;P&gt;&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, 21 Sep 2015 07:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/988742#M649590</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-09-21T07:40:20Z</dc:date>
    </item>
  </channel>
</rss>

