<?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: Inner Join table with 2 matching column condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069946#M923952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try Sunny's Solution but make sure you join your tables on Numerical keys instead of Alphanumeric(i guess VendorName field is non-numeric) else the join would eat up your RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that sake, you may want to try Autonumber(Field) function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 15:30:33 GMT</pubDate>
    <dc:creator>Qrishna</dc:creator>
    <dc:date>2016-04-20T15:30:33Z</dc:date>
    <item>
      <title>Inner Join table with 2 matching column condition</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069944#M923950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Table1 with columns VendorName , Amount, date and many other columns.&lt;/P&gt;&lt;P&gt;Table2 with columns VendorName , Amount, Category(with only one value reversal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to join both the tables in such a way that table1.VendorName= table2.vendorName AND table1.Amount=table2.Amount and the column category is added in table 1 (where the condition matches it has value "reversal " and where the condition doesnot match it says other)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to sort this kind of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S&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/Inner-Join-table-with-2-matching-column-condition/m-p/1069944#M923950</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join table with 2 matching column condition</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069945#M923951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD VendorName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inner Join(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD VendorName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure no other field names match between the two tables, if they do, then rename that particular field in one of the two tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069945#M923951</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-20T15:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join table with 2 matching column condition</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069946#M923952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try Sunny's Solution but make sure you join your tables on Numerical keys instead of Alphanumeric(i guess VendorName field is non-numeric) else the join would eat up your RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that sake, you may want to try Autonumber(Field) function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069946#M923952</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-04-20T15:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join table with 2 matching column condition</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069947#M923953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to try using a mapping load and applymap, this will give you the option of supplying a default value if you do not get a match in your lookup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Vendor_Map:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp; AutoNumber( VendorName &amp;amp; Amount ) as Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp; Category&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp; Table2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YourTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; VendorName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; OtherColumns,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ApplyMap( 'Vendor_Map', AutoNumber( VendorName &amp;amp; Amount ), 'Other' ) as Category&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069947#M923953</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2016-04-20T17:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join table with 2 matching column condition</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069948#M923954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this, it takes lot of time to load and doesnot complete the execution.&lt;/P&gt;&lt;P&gt;Inner join on AlphaNumeric and numeric is not quite preferred as mentioned by Krishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 10:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069948#M923954</guid>
      <dc:creator />
      <dc:date>2016-04-21T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join table with 2 matching column condition</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069949#M923955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Oscar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did work perfectly fine, only 1 thing I would like to add is that drop Table 1 at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 10:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-Join-table-with-2-matching-column-condition/m-p/1069949#M923955</guid>
      <dc:creator />
      <dc:date>2016-04-21T10:59:30Z</dc:date>
    </item>
  </channel>
</rss>

