<?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: Joins with multiple columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912715#M986500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, try, reload and open the table viewer (ctrl+t); you should see the 2 tables associated (join) by the field key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 07:57:34 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-08-06T07:57:34Z</dc:date>
    <item>
      <title>Joins with multiple columns</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912710#M986495</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 2 tables named Policy and Client.&lt;/P&gt;&lt;P&gt;I want to make a join between the above 2 tables&amp;nbsp; based on 2 different columns from Policy and 1 column from Client table like &lt;/P&gt;&lt;P&gt;Client.Client_ID = Policy.First_User_Id and&lt;/P&gt;&lt;P&gt;Client.Client_ID = Policy.RO_Name_Id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as we all know we can't have join the two tables based on 2 columns so I used this approach -&lt;/P&gt;&lt;P&gt;I created 2 additional column in each table like - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Policy Table - &lt;/P&gt;&lt;P&gt;Autonumber(PO_FIRST_USER_ID,[RO_NAME_ID]) as 'Client ID'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client Table - &lt;/P&gt;&lt;P&gt;Autonumber(CL_CLIENT_ID,CL_CLIENT_ID) as 'Client ID'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if this is the right approach or the above requirement can be implemented in some other way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912710#M986495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Joins with multiple columns</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912711#M986496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your Approach would be okay, if Policy.First_user_id and Policy.RO_Name_id are always identical.&lt;/P&gt;&lt;P&gt;I donot know your Business, but Policys can have different persons (and therefor different ids). Insurance policys might have the insured Person and a Person who pays. If These persons are not identical you will not get a match.&lt;/P&gt;&lt;P&gt;An Approach might be to duplicate the Client table and Name Client id to RO_Name_id (which is for sure not best Approach as it takes additiional space)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 20:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912711#M986496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Joins with multiple columns</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912712#M986497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Client.Client_ID &amp;amp; '|' &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Client.Client_ID as key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Policy.First_User_Id &amp;amp; '|' &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Policy.RO_Name_Id as key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 21:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912712#M986497</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-05T21:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Joins with multiple columns</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912713#M986498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rudolf for the answer and logic. Your logic seems to be correct we can have different FIRST_USER_ID and RO_NAME_ID and thus creating alias of Client table should be the suitable approach here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 05:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912713#M986498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-06T05:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Joins with multiple columns</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912714#M986499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would this act same as what I implemented ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 05:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912714#M986499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-06T05:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Joins with multiple columns</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912715#M986500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, try, reload and open the table viewer (ctrl+t); you should see the 2 tables associated (join) by the field key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 07:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-with-multiple-columns/m-p/912715#M986500</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-06T07:57:34Z</dc:date>
    </item>
  </channel>
</rss>

