<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576105#M1110772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have as the first part of your load when a QVD exists and the code when no QVD exists looks very similar.&amp;nbsp; If you could just have that code once it would remove the chance of things getting changed in one part and not another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you are checking for the QVD and where you load from the QVD it is different code, ie.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Upload_Incremental_From_$(vQuarter).qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(vName)$(vQuarter)$(vExt)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would make this the same, either use the variables or the fixed text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you have commented out the WHERE NOT EXISTS there is the risk of duplicate rows coming in if you pull the same row from the source table twice.&amp;nbsp; I see you are trying to ensure this isn't the case by deriving the Min Date.&amp;nbsp; This is all well and good as long as the &lt;STRONG&gt;FILEPRC_PRC_STR_DT &lt;/STRONG&gt;field can't be messed with and give a duff value at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flip side of WHERE NOT EXISTS is that if the field is not totally unique you will loose rows, so even if there are two rows in the source table and you attempt to load them at the same time &lt;STRONG&gt;WHERE NOT EXISTS(ID) &lt;/STRONG&gt;would cause only the first found row to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you are happy with the assertions you have made about the source data then it looks like a solid incremental load.&amp;nbsp; Obviously the best thing to do is to reconcile the row counts in your QVD's back to the RowCounts in your source table - just to be sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put a number of thoughts on incremental loads in a blog post - I will post a link to the blog up here in a separate post - it may take a while to be moderated though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 22:15:27 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2014-02-26T22:15:27Z</dc:date>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576104#M1110769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to check if script attached is fine? I have a doubt related validation (NOT Exists(PK)) in order to have an unique PK and don't loss any row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JFlorian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 21:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576104#M1110769</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2014-02-26T21:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576105#M1110772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have as the first part of your load when a QVD exists and the code when no QVD exists looks very similar.&amp;nbsp; If you could just have that code once it would remove the chance of things getting changed in one part and not another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you are checking for the QVD and where you load from the QVD it is different code, ie.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Upload_Incremental_From_$(vQuarter).qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(vName)$(vQuarter)$(vExt)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would make this the same, either use the variables or the fixed text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you have commented out the WHERE NOT EXISTS there is the risk of duplicate rows coming in if you pull the same row from the source table twice.&amp;nbsp; I see you are trying to ensure this isn't the case by deriving the Min Date.&amp;nbsp; This is all well and good as long as the &lt;STRONG&gt;FILEPRC_PRC_STR_DT &lt;/STRONG&gt;field can't be messed with and give a duff value at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flip side of WHERE NOT EXISTS is that if the field is not totally unique you will loose rows, so even if there are two rows in the source table and you attempt to load them at the same time &lt;STRONG&gt;WHERE NOT EXISTS(ID) &lt;/STRONG&gt;would cause only the first found row to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you are happy with the assertions you have made about the source data then it looks like a solid incremental load.&amp;nbsp; Obviously the best thing to do is to reconcile the row counts in your QVD's back to the RowCounts in your source table - just to be sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put a number of thoughts on incremental loads in a blog post - I will post a link to the blog up here in a separate post - it may take a while to be moderated though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 22:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576105#M1110772</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-26T22:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576106#M1110774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The blog post on Incremental Loads which I referred to previously can be found here:&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;P&gt;&lt;/P&gt;&lt;P&gt;There is example code for the three main ways of creating an incremental load strategy and plenty of discussion in the comments which you may find interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 22:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/576106#M1110774</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-26T22:17:09Z</dc:date>
    </item>
  </channel>
</rss>

