<?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: Delta Reload: Only Republish New Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444859#M165940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;If I understood your problem, you can do this by if condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Delta:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Load * from Delta;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;If NoOfRows('Delta') &amp;gt;0 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;SecondTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Load * from SecondTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 14:14:43 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2013-02-20T14:14:43Z</dc:date>
    <item>
      <title>Delta Reload: Only Republish New Data</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444858#M165939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tasks, where the second task is dependant on the first (currently by a "successful reload of...."). I am looking for a good way to only have the second task execute when the first task's sql query finds new delta data. This is done by running a simple SQL query and comparing a date/time field with a QVD stored date/time from the last load. Only when they differ should the first task continue building all the other QVD files, and then the second job will also run to republish the QVW file. Otherwise, the first job should immediately quit, the second job should not run, and it will try again in another 30 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea of a good structure to do this? Currently I thow in a bad statement (loading from a table that does not exist) in the Else condition that causes the first job to immediately fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Server version: QV 10 SR 3 (10.00.9070.7)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;UPDATE**********&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Script is currently set up like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LASTLOADED:&lt;/P&gt;&lt;P&gt;sql select G.LAST_COMPLTD_FISCAL_DT&lt;/P&gt;&lt;P&gt;FROM CURRENT_DATES_V;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LASTLOADED2:&lt;/P&gt;&lt;P&gt;LOAD LAST_COMPLTD_FISCAL_DT AS OLD_DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;..\QVD\LASTLOADED.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let load_check = peek('LAST_COMPLTD_FISCAL_DT',0,'LASTLOADED');&lt;/P&gt;&lt;P&gt;let load_check_old = peek('OLD_DATE',0,'LASTLOADED2');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if load_check &amp;gt; load_check_old then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Do all remaining SQL Queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trace( 'No New Data');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load [ThisThrowsAnError] FROM ../DATA/NotExistingTable.txt(txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 13:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444858#M165939</guid>
      <dc:creator />
      <dc:date>2013-02-18T13:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Reload: Only Republish New Data</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444859#M165940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;If I understood your problem, you can do this by if condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Delta:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Load * from Delta;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;If NoOfRows('Delta') &amp;gt;0 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;SecondTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Load * from SecondTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 14:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444859#M165940</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2013-02-20T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Reload: Only Republish New Data</title>
      <link>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444860#M165941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Script is currently set up like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LASTLOADED:&lt;/P&gt;&lt;P&gt;sql select G.LAST_COMPLTD_FISCAL_DT&lt;/P&gt;&lt;P&gt;FROM CURRENT_DATES_V;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LASTLOADED2:&lt;/P&gt;&lt;P&gt;LOAD LAST_COMPLTD_FISCAL_DT AS OLD_DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;..\QVD\LASTLOADED.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let load_check = peek('LAST_COMPLTD_FISCAL_DT',0,'LASTLOADED');&lt;/P&gt;&lt;P&gt;let load_check_old = peek('OLD_DATE',0,'LASTLOADED2');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if load_check &amp;gt; load_check_old then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Do all remaining SQL Queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trace( 'No New Data');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load [ThisThrowsAnError] FROM ../DATA/NotExistingTable.txt(txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 14:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delta-Reload-Only-Republish-New-Data/m-p/444860#M165941</guid>
      <dc:creator />
      <dc:date>2013-02-20T14:18:59Z</dc:date>
    </item>
  </channel>
</rss>

