<?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: Incremental load with Fullaload on every Sunday in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933326#M953432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would guess to find the record with the latest date to then load records later than this date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 18:37:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-18T18:37:58Z</dc:date>
    <item>
      <title>Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933322#M953428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help with incremental load script.&lt;/P&gt;&lt;P&gt;Requirement is to implement incremental load on a daily basis with full loads on every Sunday.&lt;/P&gt;&lt;P&gt;Can someone help me with the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933322#M953428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T18:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933323#M953429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have not done an Incremental Load before, then you may find this blog post useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/qlikview-incremental-load/" title="http://www.quickintelligence.co.uk/qlikview-incremental-load/"&gt;http://www.quickintelligence.co.uk/qlikview-incremental-load/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933323#M953429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T18:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933324#M953430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you search in the QlikView help (look for QVD) you can find "Using QVD Files for incremental load" and copy/adapt some of the logic/code. If you have some problem post your script and the problem here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding Sunday, you can use an if with&lt;/P&gt;&lt;P&gt;&lt;EM&gt;num(WeekDay( Today() ))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt; result is 0, 1, ....6,&amp;nbsp; 0 on Monday&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;to switch from incremental to full .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933324#M953430</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-18T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933325#M953431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see people are using peek function in incremental loads, can someone please explain me why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933325#M953431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T18:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933326#M953432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would guess to find the record with the latest date to then load records later than this date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933326#M953432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T18:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933327#M953433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please draft that into a script for me? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933327#M953433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T18:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load with Fullaload on every Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933328#M953434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, something like this:&lt;/P&gt;&lt;P&gt;LET vExecTime = timestamp(vnow, 'YYYYMMDD'); //hh:mm:ss:&lt;BR /&gt;SET vLastExecTime= 0; // resetting vLastExecTime&lt;/P&gt;&lt;P&gt;if not isnull(QVDCreateTime('$(QVDPath)MainTable.qvd')) then&lt;BR /&gt;LoadTime:&lt;BR /&gt;load Maxstring(timeStmp) as X&lt;/P&gt;&lt;P&gt;from $(QVDPath)MainTable.qvd (qvd);&lt;/P&gt;&lt;P&gt;Let vLastExecTime =peek('X',0,'LoadTime');&lt;BR /&gt;Drop Table LoadTime;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;MainTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; *,&lt;BR /&gt; KEY as %key&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM Table&lt;BR /&gt;WHERE timeStmp &amp;gt;= '$(vLastExecTime)' and timeStmp &amp;lt;= '$(vExecTime)'&amp;nbsp;&amp;nbsp; &lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;//Check to see if this is the first reload. If it is, skip this step&lt;BR /&gt;if Not isnull(QvdCreateTime('$(QVDPath)MainTable.qvd')) then&lt;BR /&gt;Concatenate (MainTable)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM $(QVDPath)MainTable.qvd (qvd)&lt;BR /&gt;Where not (Exists(%key));&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Check to see if there is deleted rows, and full reload&lt;BR /&gt;if(WeekDay(today())='sun') then &lt;BR /&gt;inner join &lt;BR /&gt;Load *, KEY as %key;&lt;BR /&gt;SQL SELECT *, KEY&lt;BR /&gt;FROM Table&lt;BR /&gt;;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;//If data exists within table, store to QVD.&lt;BR /&gt;if NoOfRows('MainTable') &amp;gt; 0 then&lt;BR /&gt;STORE MainTable INTO $(QVDPath)MainTable.qvd (qvd);&lt;BR /&gt;Drop Table MainTable;&lt;BR /&gt;end if&lt;BR /&gt; &lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 19:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-with-Fullaload-on-every-Sunday/m-p/933328#M953434</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2015-11-18T19:00:24Z</dc:date>
    </item>
  </channel>
</rss>

