<?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 using two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127909#M19355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in doing incremental load using two fields. The scenario that I have here is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two fields in the database say, "ID" and "STATUS". All these days I was doing the incremental load using the ID field, i.e., to load only the IDs which are greater than the ones loaded in the previous load already. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue here is, it is possible that we have multiple rows with same ID, but different STATUS. So in this case, if a particular ID is already loaded into QlikView and a new row for the same ID is added with a different STATUS, then this will not be updated in QlikView as the ID would have already been loaded into QlikView. Hence, I am trying to do incremental load based on both the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example if we have the following records loaded into QlikView,&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incremental load logic should be like, for a particular ID, load the record with highest STATUS value for that ID. So in my example above, for ID 2, the second record has to fetched since the STATUS value here is highest among all for ID 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2018 10:25:11 GMT</pubDate>
    <dc:creator>apoorvasd</dc:creator>
    <dc:date>2018-10-23T10:25:11Z</dc:date>
    <item>
      <title>Incremental load using two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127909#M19355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in doing incremental load using two fields. The scenario that I have here is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two fields in the database say, "ID" and "STATUS". All these days I was doing the incremental load using the ID field, i.e., to load only the IDs which are greater than the ones loaded in the previous load already. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue here is, it is possible that we have multiple rows with same ID, but different STATUS. So in this case, if a particular ID is already loaded into QlikView and a new row for the same ID is added with a different STATUS, then this will not be updated in QlikView as the ID would have already been loaded into QlikView. Hence, I am trying to do incremental load based on both the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example if we have the following records loaded into QlikView,&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incremental load logic should be like, for a particular ID, load the record with highest STATUS value for that ID. So in my example above, for ID 2, the second record has to fetched since the STATUS value here is highest among all for ID 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127909#M19355</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-10-23T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127910#M19356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an SQL statement that retrieves only the max status for each id:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT ID, STATUS FROM D:\QVD\HistoricalQVD.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ID, MAX(STATUS) AS STATUS FROM mydatabase.mytable GROUP BY ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Data INTO D:\QVD\HistoricalQVD.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 12:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127910#M19356</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-23T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127911#M19357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a small question. There are other fields in the table to be loaded. So, in the group by clause should I mention all these field names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 06:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127911#M19357</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-10-24T06:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127912#M19358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get a chance to look into my question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 06:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127912#M19358</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-10-25T06:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127913#M19359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need a different sql statement. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; a&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.ID&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; a&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.STATUS&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; a&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;FieldA, a.FieldB, &lt;EM&gt;...etc...&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; mydatabase.mytable a&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;INNER&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; ID&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; MAX&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;STATUS&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; STATUS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; &lt;SPAN style="color: #303336; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;mydatabase.mytable&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;BY&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; ID&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; b &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;ON&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; a&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.ID&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; b&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.ID&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;"&gt;AND&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; a&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;STATUS &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt; b&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"&gt;.STATUS&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127913#M19359</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-25T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127914#M19360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will check and see if this works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 05:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-two-fields/m-p/127914#M19360</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2018-10-26T05:17:43Z</dc:date>
    </item>
  </channel>
</rss>

