<?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: Correction excel file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364252#M829096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus just what i needed to get me started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2017 09:12:32 GMT</pubDate>
    <dc:creator>paullawrence190</dc:creator>
    <dc:date>2017-06-27T09:12:32Z</dc:date>
    <item>
      <title>Correction excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364250#M829094</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;I have a two excel files.&amp;nbsp; One is a daily extract form our CRM, the other is a correction file with same file structure but with some corrections to errors on the CRM we cannot amend on the CRM.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can tell Qlik to use the clean file first but add in the rest of files from the extract, without getting duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364250#M829094</guid>
      <dc:creator>paullawrence190</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Correction excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364251#M829095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing your exact file structure it's difficult to work out exactly what your script would look like but it might be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRMData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [key field],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [field 1],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [field 2],&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;FROM CorrectionFile&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (CRMData)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [key field],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [field 1], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [field 2], &lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;FROM CRM Extract&lt;/P&gt;&lt;P&gt;WHERE NOT Exists ([key field])&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course this is a simplification. Your key may be a combination of several fields, in which case you should build a composite key, and use that in your exists clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364251#M829095</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-06-27T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Correction excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364252#M829096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus just what i needed to get me started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364252#M829096</guid>
      <dc:creator>paullawrence190</dc:creator>
      <dc:date>2017-06-27T09:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Correction excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364253#M829097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made a composite key but when i do this it does not work.&amp;nbsp; is this because i am having to do a resident load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use an existing key field it works but key is not unique so i loose some records.&amp;nbsp; I have added this key to a date field to get unique key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i do via a temp table and resident i just get the correction file in the data but not he extract.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364253#M829097</guid>
      <dc:creator>paullawrence190</dc:creator>
      <dc:date>2017-06-28T14:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Correction excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364254#M829098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine your resident load may be the issue, no problem though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as things stand you have something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [composite key]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from corrections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; field1 &amp;amp; '_' &amp;amp; field2 as [composite key]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate (table1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [composite key]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT table2&lt;/P&gt;&lt;P&gt;WHERE Not EXISTS ([composite key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue here is that all possible values for composite key already exist in table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, move the exists clause to the table2 load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Not Exists([composite key], field1 &amp;amp; '_' &amp;amp; field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this something like what's in your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, please share a snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364254#M829098</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-06-28T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Correction excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364255#M829099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus that was it works a treat now.&amp;nbsp; Need to do a bit of data validation but looks good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correction-excel-file/m-p/1364255#M829099</guid>
      <dc:creator>paullawrence190</dc:creator>
      <dc:date>2017-06-28T15:23:14Z</dc:date>
    </item>
  </channel>
</rss>

