<?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 Tables join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233841#M501822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD ID as ID1, Amount FROM &lt;C&gt; (biff, embedded labels, table is [Sheet1$]);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD ID , Amount FROM &lt;C&gt; (biff, embedded labels, table is [Sheet1$])&lt;/C&gt;&lt;/P&gt;&lt;P&gt;where Not exists(ID1,ID);&lt;/P&gt;&lt;P&gt;Drop table A;&lt;/P&gt;&lt;P&gt;As told by my seniors(Bhaskar )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 10:57:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-01T10:57:06Z</dc:date>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233834#M501815</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;My problem is Suppose I have two tables :&lt;/P&gt;&lt;P&gt;Table A :&lt;/P&gt;&lt;P&gt;ID Amount&lt;/P&gt;&lt;P&gt;ID_1 2&lt;/P&gt;&lt;P&gt;ID_2 10&lt;/P&gt;&lt;P&gt;ID_3 8&lt;/P&gt;&lt;P&gt;ID_4 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;P&gt;ID Amount&lt;/P&gt;&lt;P&gt;ID_5 12&lt;/P&gt;&lt;P&gt;ID_2 11&lt;/P&gt;&lt;P&gt;ID_7 3&lt;/P&gt;&lt;P&gt;ID_4 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the output i want only :&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;ID_5&lt;/P&gt;&lt;P&gt;ID_7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its very simple, but i m just screwed and not getting solution for same. Please Help on the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 09:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233834#M501815</guid>
      <dc:creator />
      <dc:date>2011-03-01T09:49:22Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233835#M501816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;From .....&lt;/P&gt;&lt;P&gt;Where NotExists(ID)&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 09:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233835#M501816</guid>
      <dc:creator />
      <dc:date>2011-03-01T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233836#M501817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't know if I got your requirement right, but if you only want to keep in table two those values that don't appear in table one, you can use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TableA:LOAD ID, AmountFROM TableA; TableB:NOCONCATENATE LOAD ID, AmountFROM TableB WHERE NOT EXISTS(ID);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 09:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233836#M501817</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-01T09:59:24Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233837#M501818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i was not able to explain the problem correctly.&lt;/P&gt;&lt;P&gt;See Suppose i have same above two tables A and B in excel.&lt;/P&gt;&lt;P&gt;Now my report will be showing all those ID which in table B but not present in tables A. Actually they will be working as the NEW ID's.&lt;/P&gt;&lt;P&gt;OUTPUT :&lt;/P&gt;&lt;P&gt;ID Amount&lt;/P&gt;&lt;P&gt;ID_5 12&lt;/P&gt;&lt;P&gt;ID_7 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233837#M501818</guid>
      <dc:creator />
      <dc:date>2011-03-01T10:06:35Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233838#M501819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just modified Miguels statement.&lt;/P&gt;&lt;P&gt;TableA:&lt;BR /&gt;LOAD ID, Amount&lt;BR /&gt;FROM TableA;&lt;BR /&gt;&lt;BR /&gt;TableB:&lt;BR /&gt;NOCONCATENATE LOAD ID, Amount&lt;BR /&gt;FROM TableB WHERE NOT EXISTS(ID);&lt;/P&gt;&lt;P&gt;Drop TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233838#M501819</guid>
      <dc:creator />
      <dc:date>2011-03-01T10:47:19Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233839#M501820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So I see several things here.&lt;/P&gt;&lt;P&gt;If possible, I'd create a flag in the script so you can easily identify which IDs in Table B are nor present in Table A (note that since I'm loading from INLINE I have to rename fields ID to IDA or IDB, and so with AmountA and AmountB, but loading from excel may not need that, since the IF() conditional would be built runtime.):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TableA:LOAD * INLINE [IDA, AmountAID_1, 2ID_2, 10ID_3, 8ID_4, 3]; TableB:NOCONCATENATE LOAD * INLINE [IDB, AmountBID_5, 12ID_2, 11ID_7, 3ID_4, 7]; TableBWithFlags:LOAD *, IF(NOT EXISTS(IDA, IDB), 1, 0) AS FLAGRESIDENT TableB; DROP TABLE TableB;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now in your chart, the following expression should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; FLAG = {1} &amp;gt;} AmountB)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But what I think, provided you have QlikView version 9 or higher, using indirect set analysis with elemental functions will do it cleaner and probably faster:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; IDB -= P(IDA) &amp;gt;} AmountB)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233839#M501820</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-01T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233840#M501821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use right join... Thn u wil get the answer what u need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233840#M501821</guid>
      <dc:creator />
      <dc:date>2011-03-01T10:53:23Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233841#M501822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD ID as ID1, Amount FROM &lt;C&gt; (biff, embedded labels, table is [Sheet1$]);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD ID , Amount FROM &lt;C&gt; (biff, embedded labels, table is [Sheet1$])&lt;/C&gt;&lt;/P&gt;&lt;P&gt;where Not exists(ID1,ID);&lt;/P&gt;&lt;P&gt;Drop table A;&lt;/P&gt;&lt;P&gt;As told by my seniors(Bhaskar )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233841#M501822</guid>
      <dc:creator />
      <dc:date>2011-03-01T10:57:06Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233842#M501823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all of you for a quick response....&lt;/P&gt;&lt;P&gt;BUt still not working at my end.&lt;/P&gt;&lt;P&gt;Can any one send me a example .Qvw !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 12:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233842#M501823</guid>
      <dc:creator />
      <dc:date>2011-03-01T12:46:38Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233843#M501824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aswhin,&lt;/P&gt;&lt;P&gt;Feel free to use the script posted above as an example. Then change my sample names for your actual field names.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 12:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233843#M501824</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-01T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Tables join</title>
      <link>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233844#M501825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thxx !!!!&lt;/P&gt;&lt;P&gt;It worked actually there was mistake done by me at script level................:) Thanks Again to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 13:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tables-join/m-p/233844#M501825</guid>
      <dc:creator />
      <dc:date>2011-03-01T13:00:46Z</dc:date>
    </item>
  </channel>
</rss>

