<?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: Where not exists - incremental loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320250#M118015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very helpful!&amp;nbsp; I believe it solves the problem or at least points me to the solution.&lt;/P&gt;&lt;P&gt;The list of units in Actual edition can change daily, and may or may not be the same as the list of units that was forecast for that particular day.&lt;/P&gt;&lt;P&gt;But in the end, when we load an Actual edition for a particular day, we don't want to pull back anything at all labeled as Forecast edition for that date.&lt;/P&gt;&lt;P&gt;I will play with this some and see how it works under various scenarios.&lt;/P&gt;&lt;P&gt;Thanks for taking the time Roland &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Jun 2011 11:21:29 GMT</pubDate>
    <dc:creator>pgdavis2</dc:creator>
    <dc:date>2011-06-26T11:21:29Z</dc:date>
    <item>
      <title>Where not exists - incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320248#M118013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When doing an incremental load, we pull in new data for a set of units that has a date with it.&lt;/P&gt;&lt;P&gt;The historical qvd file is then loaded where not exists primary.&lt;/P&gt;&lt;P&gt;That works ok except that we are sometimes pulling in units from the historical qvd for a particular date that don't exist in the new data.&lt;/P&gt;&lt;P&gt;We only want to pull in data from the past that does not match the date of the new data.&amp;nbsp; We can't seem to do that since the date is not unique field.&lt;/P&gt;&lt;P&gt;I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Data:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this creates the historical data, which is the forecast edition&lt;/P&gt;&lt;P&gt;//LOAD Edition, &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour, &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Date&amp;amp;Hour&amp;amp;Name as Primarykey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//FROM&lt;/P&gt;&lt;P&gt;//.\Forecast.csv&lt;/P&gt;&lt;P&gt;//(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;//STORE * from Data into historical.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; //This loads the new data from Actual.csv&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Edition, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Date&amp;amp;Hour&amp;amp;Name as Primarykey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;.\Actual.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate Load * from historical.qvd (qvd) where not exists(Primarykey,Primarykey);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unit 3 was in forecast edition for 5/7, but not in actual edition (new data)&lt;/P&gt;&lt;P&gt;I don't want to pull it back from the QVD -&amp;nbsp; I only want 5/8 data to be pulled back from the QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2011 02:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320248#M118013</guid>
      <dc:creator>pgdavis2</dc:creator>
      <dc:date>2011-06-25T02:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists - incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320249#M118014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;take a look at my sunday afternoon suggestion: I assumed that you only want to read in from qvd data of those units that come in via actual.csv. Search for //RK to see what I have done in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the filter criteria is for ex. the date, so exchange RefUnit with RefDate.&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2011 11:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320249#M118014</guid>
      <dc:creator />
      <dc:date>2011-06-26T11:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists - incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320250#M118015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very helpful!&amp;nbsp; I believe it solves the problem or at least points me to the solution.&lt;/P&gt;&lt;P&gt;The list of units in Actual edition can change daily, and may or may not be the same as the list of units that was forecast for that particular day.&lt;/P&gt;&lt;P&gt;But in the end, when we load an Actual edition for a particular day, we don't want to pull back anything at all labeled as Forecast edition for that date.&lt;/P&gt;&lt;P&gt;I will play with this some and see how it works under various scenarios.&lt;/P&gt;&lt;P&gt;Thanks for taking the time Roland &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2011 11:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320250#M118015</guid>
      <dc:creator>pgdavis2</dc:creator>
      <dc:date>2011-06-26T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists - incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320251#M118016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think RefDate, as you suggested, is what we needed...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2011 11:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320251#M118016</guid>
      <dc:creator>pgdavis2</dc:creator>
      <dc:date>2011-06-26T11:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists - incremental loading</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320252#M118017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, &lt;/P&gt;&lt;P&gt;This points into the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;glad to help you, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 07:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-incremental-loading/m-p/320252#M118017</guid>
      <dc:creator />
      <dc:date>2011-06-27T07:53:10Z</dc:date>
    </item>
  </channel>
</rss>

