<?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 Incremental Load Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990339#M956306</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;&amp;nbsp; I have implemented the incremental load for one of my application. There I am loading latest date's record from DB as well as deleting &lt;/P&gt;&lt;P&gt;very first days record from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the dashboard was showing Min and Max of date only for some of instruments.&lt;/P&gt;&lt;P&gt;Though DB having in between days data it is not showing up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My incremental load will be like below&lt;/P&gt;&lt;P&gt;/*If Historical QVD is not available */&lt;/P&gt;&lt;P&gt;History_A:&lt;/P&gt;&lt;P&gt;Sql Select * from DB_Table&lt;/P&gt;&lt;P&gt;where Type_Name ='A' and Trunc(Load_date)&amp;gt;=trunc(SYSDATE-15);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store History_A into History_A.qvd;&lt;/P&gt;&lt;P&gt;Transac:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From History_A.qvd;&lt;/P&gt;&lt;P&gt;Store Transac into Transac.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else (//if history qvd is avilable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * frrom&lt;/P&gt;&lt;P&gt;History_A.qvd&lt;/P&gt;&lt;P&gt;where (timestamp(Load_Date))&amp;gt;= (timestamp(today()-14)&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;SQL select * from DB_Table&lt;/P&gt;&lt;P&gt;where Trunc(Load_Date)=Trunc(Sysdate-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB is Oracle.&lt;/P&gt;&lt;P&gt;Kindly share your inputs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 07:05:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-13T07:05:09Z</dc:date>
    <item>
      <title>Incremental Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990339#M956306</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;&amp;nbsp; I have implemented the incremental load for one of my application. There I am loading latest date's record from DB as well as deleting &lt;/P&gt;&lt;P&gt;very first days record from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the dashboard was showing Min and Max of date only for some of instruments.&lt;/P&gt;&lt;P&gt;Though DB having in between days data it is not showing up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My incremental load will be like below&lt;/P&gt;&lt;P&gt;/*If Historical QVD is not available */&lt;/P&gt;&lt;P&gt;History_A:&lt;/P&gt;&lt;P&gt;Sql Select * from DB_Table&lt;/P&gt;&lt;P&gt;where Type_Name ='A' and Trunc(Load_date)&amp;gt;=trunc(SYSDATE-15);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store History_A into History_A.qvd;&lt;/P&gt;&lt;P&gt;Transac:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From History_A.qvd;&lt;/P&gt;&lt;P&gt;Store Transac into Transac.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else (//if history qvd is avilable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * frrom&lt;/P&gt;&lt;P&gt;History_A.qvd&lt;/P&gt;&lt;P&gt;where (timestamp(Load_Date))&amp;gt;= (timestamp(today()-14)&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;SQL select * from DB_Table&lt;/P&gt;&lt;P&gt;where Trunc(Load_Date)=Trunc(Sysdate-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB is Oracle.&lt;/P&gt;&lt;P&gt;Kindly share your inputs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990339#M956306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T07:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990340#M956307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this trunc() exist in QV?? I doubt!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990340#M956307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990341#M956309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not using Trunc in QV load script..In SQL only I am using it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990341#M956309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T07:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990342#M956310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very simple process to implement Incremental load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/84146"&gt;Incremental load in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.learnallbi.com/incremental-load-in-qlikview-part1/" title="http://www.learnallbi.com/incremental-load-in-qlikview-part1/"&gt;Incremental Load in QlikView – Part1 | Learn QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.learnallbi.com/incremental-load-in-qlikview-part2/" title="http://www.learnallbi.com/incremental-load-in-qlikview-part2/"&gt;Incremental Load in QlikView – Part2 | Learn QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990342#M956310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T07:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990343#M956311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay, pls go through the shared threads, you will get your answer&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990343#M956311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990344#M956313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't' say the incremental load in Qlik is very simple.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can find some help in QlikView help (search QVD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="264" src="https://community.qlik.com/legacyfs/online/105304_1.png" style="height: 264px; width: 375.906px;" width="376" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regarding your script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;In the first sql statement you filter the record from db&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;in the last one you don't; why?&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where Type_Name ='A' &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;When the qvd is available, you load 15 days from qvd and concatenate 3 days (I suppose you need a Trunc(Load_Date)&lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt;trunc(Sysdate-2), greater equal, not an equal as in your script).&lt;/P&gt;&lt;P&gt;I think you get some duplicated rows here, because you load the same dates from qvd and from db.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Maybe you need to first load from db and the from qvd with a not exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also you miss a&amp;nbsp; store in history qvd &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Else (//if history qvd is avilable)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * frrom&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;History_A.qvd&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where (timestamp(Load_Date))&amp;gt;= (timestamp(today()-14)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL select * from DB_Table&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where Trunc(Load_Date)=Trunc(Sysdate-2)&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;You filter on load date in Oracle and in Qlik&lt;/P&gt;&lt;P&gt;In Oracle the filter is on a date (because of trunc); In Qlik you use the timestamp. Perhaps it works; I think it's better to use the same logic (e.g &lt;EM&gt;select trunc(Load_Date) as Load_Date&lt;/EM&gt; in Oracle, so you store a date in qvd and &lt;EM&gt;Load_Date &amp;gt;= (today()-14)&lt;/EM&gt; in Qlik)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 08:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Issue/m-p/990344#M956313</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-13T08:00:39Z</dc:date>
    </item>
  </channel>
</rss>

