<?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 of FlatTable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-of-FlatTable/m-p/192581#M54198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want the final result to be? Something like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ProdID, CustomerID, Year, Month, Amount, Marge, Cost&lt;/P&gt;&lt;P&gt;If so, look into doing a CROSSTABLE load. There might be an easier way, and I probably have bugs, but perhaps something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Raw:&lt;BR /&gt;LOAD&lt;BR /&gt; recno() as Recno&lt;BR /&gt;,ProdID&lt;BR /&gt;,CustomerID&lt;BR /&gt;,Year&lt;BR /&gt;,Amount1&lt;BR /&gt;,Amount2&lt;BR /&gt;...&lt;BR /&gt;,Amount12&lt;BR /&gt;,Marge1&lt;BR /&gt;,Marge2&lt;BR /&gt;...&lt;BR /&gt;,Marge12&lt;BR /&gt;,Cost1&lt;BR /&gt;,Cost2&lt;BR /&gt;...&lt;BR /&gt;,Cost12&lt;BR /&gt;FROM Source&lt;BR /&gt;;&lt;BR /&gt;New:&lt;BR /&gt;CROSSTABLE (Month,Amount,4)&lt;BR /&gt;LOAD&lt;BR /&gt; Recno&lt;BR /&gt;,ProdID&lt;BR /&gt;,CustomerID&lt;BR /&gt;,Year&lt;BR /&gt;,Amount1 as 1&lt;BR /&gt;,Amount2 as 2&lt;BR /&gt;...&lt;BR /&gt;,Amount12 as 12&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (New)&lt;BR /&gt;CROSSTABLE (Month,Marge)&lt;BR /&gt;LOAD&lt;BR /&gt; Recno&lt;BR /&gt;,Marge1 as 1&lt;BR /&gt;,Marge2 as 2&lt;BR /&gt;...&lt;BR /&gt;,Marge12 as 12&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (New)&lt;BR /&gt;CROSSTABLE (Month,Cost)&lt;BR /&gt;LOAD&lt;BR /&gt; Recno&lt;BR /&gt;,Cost1 as 1&lt;BR /&gt;,Cost2 as 2&lt;BR /&gt;...&lt;BR /&gt;,Cost12 as 12&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;As for turning that into an incremental load, I'd need more information. Is "source" a file? A database? A QVD? How is data added to "source"? On what schedule? Can records be deleted from "source"? Can they be changed? Or can they only be added? What advantage are you hoping to gain by going to an incremental reload?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 02:12:10 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-09-22T02:12:10Z</dc:date>
    <item>
      <title>Incremental Load of FlatTable</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-of-FlatTable/m-p/192580#M54197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table which has the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;ProdID, CustomerID, Year, Amount1, Marge1, Cost1, Amount2, Marge2, Cost2, Amount3, Marge3, Cost3,...,...,...,...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Where 1,2,3,.. are the months. So the table is in an odd structure.&lt;/P&gt;&lt;P&gt;What would be the best way to incremental Load that table.&lt;/P&gt;&lt;P&gt;My approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;table1:&lt;BR /&gt;LOAD&lt;BR /&gt;ProdID,&lt;BR /&gt;CustomerID,&lt;BR /&gt;Year,&lt;BR /&gt;Amount1,&lt;BR /&gt;Marge1,&lt;BR /&gt; Cost1&lt;BR /&gt;FROM source;&lt;BR /&gt;&lt;BR /&gt;CONCATANATE(tabe1)&lt;BR /&gt;LOAD&lt;BR /&gt;ProdID,&lt;BR /&gt;CustomerID,&lt;BR /&gt;Year,&lt;BR /&gt;Amount1,&lt;BR /&gt;Marge1,&lt;BR /&gt; Cost1&lt;BR /&gt;FROM source;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But this gives me too many ProdID's and CustomerID's. Is that a problem?&lt;BR /&gt;Any help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 19:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-of-FlatTable/m-p/192580#M54197</guid>
      <dc:creator />
      <dc:date>2009-09-21T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Incremental Load of FlatTable</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-of-FlatTable/m-p/192581#M54198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want the final result to be? Something like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ProdID, CustomerID, Year, Month, Amount, Marge, Cost&lt;/P&gt;&lt;P&gt;If so, look into doing a CROSSTABLE load. There might be an easier way, and I probably have bugs, but perhaps something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Raw:&lt;BR /&gt;LOAD&lt;BR /&gt; recno() as Recno&lt;BR /&gt;,ProdID&lt;BR /&gt;,CustomerID&lt;BR /&gt;,Year&lt;BR /&gt;,Amount1&lt;BR /&gt;,Amount2&lt;BR /&gt;...&lt;BR /&gt;,Amount12&lt;BR /&gt;,Marge1&lt;BR /&gt;,Marge2&lt;BR /&gt;...&lt;BR /&gt;,Marge12&lt;BR /&gt;,Cost1&lt;BR /&gt;,Cost2&lt;BR /&gt;...&lt;BR /&gt;,Cost12&lt;BR /&gt;FROM Source&lt;BR /&gt;;&lt;BR /&gt;New:&lt;BR /&gt;CROSSTABLE (Month,Amount,4)&lt;BR /&gt;LOAD&lt;BR /&gt; Recno&lt;BR /&gt;,ProdID&lt;BR /&gt;,CustomerID&lt;BR /&gt;,Year&lt;BR /&gt;,Amount1 as 1&lt;BR /&gt;,Amount2 as 2&lt;BR /&gt;...&lt;BR /&gt;,Amount12 as 12&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (New)&lt;BR /&gt;CROSSTABLE (Month,Marge)&lt;BR /&gt;LOAD&lt;BR /&gt; Recno&lt;BR /&gt;,Marge1 as 1&lt;BR /&gt;,Marge2 as 2&lt;BR /&gt;...&lt;BR /&gt;,Marge12 as 12&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (New)&lt;BR /&gt;CROSSTABLE (Month,Cost)&lt;BR /&gt;LOAD&lt;BR /&gt; Recno&lt;BR /&gt;,Cost1 as 1&lt;BR /&gt;,Cost2 as 2&lt;BR /&gt;...&lt;BR /&gt;,Cost12 as 12&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;As for turning that into an incremental load, I'd need more information. Is "source" a file? A database? A QVD? How is data added to "source"? On what schedule? Can records be deleted from "source"? Can they be changed? Or can they only be added? What advantage are you hoping to gain by going to an incremental reload?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 02:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-of-FlatTable/m-p/192581#M54198</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-22T02:12:10Z</dc:date>
    </item>
  </channel>
</rss>

