<?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 Concatenate where exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163596#M36649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah thanks now I get it.&lt;/P&gt;&lt;P&gt;is it also possible to use &lt;B&gt;Where exists&lt;/B&gt; for cleaning up data?&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;B&gt;Table Employees:&lt;/B&gt;&lt;BR /&gt;emp_id, emp_name,...&lt;/P&gt;&lt;P&gt;&lt;B&gt;Table Contracts:&lt;BR /&gt;&lt;/B&gt;contract_id, emp_id&lt;BR /&gt;&lt;BR /&gt;in case I have persons in my table employees that don't exists in table contract and I want to remove them during load (so employees and contracts is consistant).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2009 18:59:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-21T18:59:55Z</dc:date>
    <item>
      <title>Concatenate where exists</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163592#M36645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm quite new to QlikView and dealing with a concatenate problem.&lt;BR /&gt;I have 2 excel files I'd like to concatenate. File1Account:&lt;BR /&gt;AccountID, Accountname, Date, Sales,...&lt;/P&gt;&lt;P&gt;File2Account:&lt;BR /&gt;AccountID, Accountname, Date, Order,....&lt;/P&gt;&lt;P&gt;I'd like to concatenate only the accounts from file 2 where the account_id exists in both files.&lt;/P&gt;&lt;P&gt;How would it manage it if I only want to load the data from File2 where Account exists in file1.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 16:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163592#M36645</guid>
      <dc:creator />
      <dc:date>2009-08-21T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Concatenate where exists</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163593#M36646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use &lt;EM&gt;Where Not Exists('AccountID', AccountID2)&lt;/EM&gt; when loading the second file. It will then only load records with an AccountId that already exist in your qlikview cloud. It's important to use two different names, otherwise it will load only one record per AccountId from your second file.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;File1:&lt;BR /&gt;Load AccountId, AccountName, Date, Sales;&lt;BR /&gt;SQL Select AccountId, AccountName, Date, Sales From File1Account;&lt;BR /&gt;&lt;BR /&gt;Concatenate(File1)&lt;BR /&gt;Load AccountId2 As AccountId, AccountName, Date, Order&lt;BR /&gt;Where Exists('AccountId', AccountId2);&lt;BR /&gt;SQL Select AccountId As AccountId2, AccountName, Date, Order From File2Account;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 17:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163593#M36646</guid>
      <dc:creator>eric_dielessen</dc:creator>
      <dc:date>2009-08-21T17:04:39Z</dc:date>
    </item>
    <item>
      <title>Concatenate where exists</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163594#M36647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;thanks for your help:&lt;BR /&gt;I don't understand " It's important to use two different names, otherwise it will load only one record per AccountId from your second file."&lt;/P&gt;&lt;P&gt;I tried without two different names in a test file and it seems to work (see attached file).&lt;BR /&gt;Did I get something wrong?&lt;/P&gt;&lt;P&gt;Testdata looks like this:&lt;BR /&gt;&lt;STRONG&gt;File1:&lt;BR /&gt;&lt;/STRONG&gt;AccountID Text1&lt;BR /&gt;===================&lt;BR /&gt;1 test1&lt;BR /&gt;2 test2&lt;BR /&gt;3 test3&lt;BR /&gt;4 test4&lt;BR /&gt;5 test5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File2:&lt;/STRONG&gt;&lt;BR /&gt;AccountID Text2&lt;BR /&gt;=================&lt;BR /&gt;1 test1&lt;BR /&gt;2 test2&lt;BR /&gt;3 test3&lt;BR /&gt;4 test41&lt;BR /&gt;4 test42&lt;BR /&gt;5 test51&lt;BR /&gt;5 test52&lt;BR /&gt;5 test51&lt;BR /&gt;6 test6&lt;BR /&gt;7 test7&lt;/P&gt;&lt;P&gt;Can I manage it with concatenate to get only the data that exists in both files? (e.g) AccountID=1 isnt't in File1&lt;BR /&gt;Or do I have to manage this with an inner join?&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:120pt;border-collapse:collapse;" width="160"&gt;&lt;COLGROUP&gt;&lt;COL span="2" style="width:60pt;" width="80" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD height="20" style="background-color:transparent;width:60pt;height:15pt;border:#d4d0c8;" width="80"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;width:60pt;border:#d4d0c8;" width="80"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="background-color:transparent;height:15pt;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;TD style="background-color:transparent;border:#d4d0c8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 18:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163594#M36647</guid>
      <dc:creator />
      <dc:date>2009-08-21T18:24:38Z</dc:date>
    </item>
    <item>
      <title>Concatenate where exists</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163595#M36648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right about the different names; using different names is only necessary when you want to load records with an AccountId that do NOT exist already in the first file.&lt;/P&gt;&lt;P&gt;In other words, the concatenate can be used as in your example.&lt;/P&gt;&lt;P&gt;INNER Join will only work when&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is only one record per AccountId in the first table AND&lt;/LI&gt;&lt;LI&gt;There are no measures (fields that will be used in for example sum-expressions ) in the first file&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 18:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163595#M36648</guid>
      <dc:creator>eric_dielessen</dc:creator>
      <dc:date>2009-08-21T18:38:51Z</dc:date>
    </item>
    <item>
      <title>Concatenate where exists</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163596#M36649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah thanks now I get it.&lt;/P&gt;&lt;P&gt;is it also possible to use &lt;B&gt;Where exists&lt;/B&gt; for cleaning up data?&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;B&gt;Table Employees:&lt;/B&gt;&lt;BR /&gt;emp_id, emp_name,...&lt;/P&gt;&lt;P&gt;&lt;B&gt;Table Contracts:&lt;BR /&gt;&lt;/B&gt;contract_id, emp_id&lt;BR /&gt;&lt;BR /&gt;in case I have persons in my table employees that don't exists in table contract and I want to remove them during load (so employees and contracts is consistant).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 18:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163596#M36649</guid>
      <dc:creator />
      <dc:date>2009-08-21T18:59:55Z</dc:date>
    </item>
    <item>
      <title>Concatenate where exists</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163597#M36650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep ... that's the way how to load only those records that have a relation to a record in an earlier loaded table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 19:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-where-exists/m-p/163597#M36650</guid>
      <dc:creator>eric_dielessen</dc:creator>
      <dc:date>2009-08-21T19:11:14Z</dc:date>
    </item>
  </channel>
</rss>

