<?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: Issues in incremental load using not exsists() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220778#M849314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableMax_Date:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Date) AS Max_Date&lt;/P&gt;&lt;P&gt;FROM QVD_history.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax_Date = Peek('Max_Date', 0, 'TableMax_Date');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE &lt;SPAN style="font-size: 13.3333px;"&gt;TableMax_Date&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD_incremental:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID AS id_exists&lt;/P&gt;&lt;P&gt;FROM DATABASE&lt;/P&gt;&lt;P&gt;WHERE Date &amp;gt; '$(vMax_Date)'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not isnull(QvdCreateTime('QVD_history.qvd')) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCATENATE(QVD_incremental)&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM QVD_history.qvd (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE not exists(id_exists,ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP FIELD id_exists;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE QVD_history INTO QVD_history.qvd (qvd);&lt;/P&gt;&lt;P&gt;DROP TABLE QVD_history;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;German&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 13:31:26 GMT</pubDate>
    <dc:creator>german24</dc:creator>
    <dc:date>2017-03-16T13:31:26Z</dc:date>
    <item>
      <title>Issues in incremental load using not exsists()</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220774#M849310</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;I am doing a full load.let say the load has 100 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I am running an incremental load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flow&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;1.getting max date from the full load qvd&lt;/P&gt;&lt;P&gt;2.Getting records from data base where date&amp;gt; last date in history qvd.&lt;/P&gt;&lt;P&gt;3. concatenating the above delta records sets with the history QVD where not exists(ID which is primary key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the issue is just after full load when I am running the incremental app&amp;nbsp; the delta part from data base is fetching 0 records.&lt;/P&gt;&lt;P&gt;but when its getting concated with history QVD I am seeing less record in the final data set..(i.e 90 instead of 100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it due to I am using not exists()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220774#M849310</guid>
      <dc:creator>aniruddhyadutta</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in incremental load using not exsists()</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220775#M849311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure your ID is a primary key? If it's not, NOT EXISTS() will not fetch any IDs that are part of the LOADed records so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220775#M849311</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-16T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in incremental load using not exsists()</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220776#M849312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can see records loading from the history QVD being fetched in the incremental app.&lt;/P&gt;&lt;P&gt;Only issues is even if the delta part is 0,in my final data set after concatenating with the history qvd I am getting less than the original full load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220776#M849312</guid>
      <dc:creator>aniruddhyadutta</dc:creator>
      <dc:date>2017-03-16T13:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in incremental load using not exsists()</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220777#M849313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Ok, I understood that.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I assume ID is not a primary key of your table, instead you can create new records with same ID and new Timestamp, so only the combination will be unique.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I assume you want to implement an Update process, so historic records with older timestamp will be replaced with new records. Your initial full load should handle that, e.g. by only loading the IDs with latest timestamp. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I assume that your current process will only show the oldest records per ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220777#M849313</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-16T13:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in incremental load using not exsists()</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220778#M849314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableMax_Date:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Date) AS Max_Date&lt;/P&gt;&lt;P&gt;FROM QVD_history.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax_Date = Peek('Max_Date', 0, 'TableMax_Date');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE &lt;SPAN style="font-size: 13.3333px;"&gt;TableMax_Date&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD_incremental:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID AS id_exists&lt;/P&gt;&lt;P&gt;FROM DATABASE&lt;/P&gt;&lt;P&gt;WHERE Date &amp;gt; '$(vMax_Date)'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not isnull(QvdCreateTime('QVD_history.qvd')) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCATENATE(QVD_incremental)&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM QVD_history.qvd (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE not exists(id_exists,ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP FIELD id_exists;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE QVD_history INTO QVD_history.qvd (qvd);&lt;/P&gt;&lt;P&gt;DROP TABLE QVD_history;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;German&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-incremental-load-using-not-exsists/m-p/1220778#M849314</guid>
      <dc:creator>german24</dc:creator>
      <dc:date>2017-03-16T13:31:26Z</dc:date>
    </item>
  </channel>
</rss>

