<?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: Joining one dimension with two from another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771247#M273745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you sure that when you have a Client ID, you don't have the Producer ID ?&lt;/P&gt;&lt;P&gt;If so, you can simple do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if(len([Client ID])&amp;gt;0,[Client ID],[Producer ID]) as Client_Producer_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the two tables will be associated with the dimension Client_Producer_ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 14:31:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-23T14:31:20Z</dc:date>
    <item>
      <title>Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771241#M273739</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 am having a problem joining two tables based on one particular dimension which needs to be linked to two separate dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first table contains a field called &lt;STRONG&gt;Client_Producer_ID&lt;/STRONG&gt;. This contains a unique ID for each client and producer which are actually two different fields. It also has a field indicating the total number of &lt;STRONG&gt;Orders&lt;/STRONG&gt; with that client or producer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second table has four fields:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Client ID&lt;/STRONG&gt; which contains IDs found in Client_Producer_ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Producer ID&lt;/STRONG&gt; which also contains IDs found in the master list Client_Producer_ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Company Type&lt;/STRONG&gt; which is a number identifier as to whether the company is a client or producer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Company Name&lt;/STRONG&gt; which has the name of the client or producer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ideal output would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Client_Producer_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Company Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Company Type&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;# Orders&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;312678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;ABC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Producer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;513456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;XYZ&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;876775&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;MNO&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;543379&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JKI&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Producer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Client ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Producer ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Company Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Company Type&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;# Orders&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;312678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Producer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;513456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;XYZ&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;876775&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;MNO&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;543379&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JKI&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Producer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried both mapping and joins but have not been able to get the tables to link properly. What I have done is try to define Client_Producer_ID as either Company_ID or Producer_ID, based on the value of Company Type in the second table. However, I continue to get null values entirely for either one of these fields depending on which may I join or map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on the best way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771241#M273739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-23T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771242#M273740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post sample of your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771242#M273740</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-23T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771243#M273741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What type of join did you try?&amp;nbsp; You should be able to left join the second table onto the first table and it will bring over the fields for any records in the second table that match on the field &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Client_Producer_ID &lt;/STRONG&gt;in the first table.&amp;nbsp; You just need to rename that field in the second table as &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Client_Producer_ID &lt;/STRONG&gt;when doing the left join so it merges with the other ID field in the first table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771243#M273741</guid>
      <dc:creator />
      <dc:date>2015-02-23T13:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771244#M273742</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;Please create composite key as below and join tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Client_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'-'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Producer_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Client_Producer_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; User.qvd &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771244#M273742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-23T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771245#M273743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it always going to be the case that you will either have Client ID or Producer ID given to you, never both?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 14:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771245#M273743</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-23T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771246#M273744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have to got an example qvw OR sample of the data you are loading, which you can post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 14:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771246#M273744</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-02-23T14:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771247#M273745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you sure that when you have a Client ID, you don't have the Producer ID ?&lt;/P&gt;&lt;P&gt;If so, you can simple do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if(len([Client ID])&amp;gt;0,[Client ID],[Producer ID]) as Client_Producer_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the two tables will be associated with the dimension Client_Producer_ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 14:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771247#M273745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-23T14:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771248#M273746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure. I realise I have actually described the table layouts above incorrectly. The data should make it clear however as to how it's structured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last solution I had tried was to create a temporary QVD file with both Producer ID and Client ID defined and then load these back in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14247050207605819" jivemacro_uid="_14247050207605819"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Producers:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Producer_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [Producer ID],&lt;/P&gt;&lt;P&gt;// Client_ID&lt;/P&gt;&lt;P&gt;Orders&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [# Orders]&lt;/P&gt;&lt;P&gt;FROM Producer_Client.xml&lt;/P&gt;&lt;P&gt;WHERE ISNULL(Client_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt; client_producer_ID,&lt;BR /&gt; company_type,&lt;BR /&gt; company_name&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp; Company.xml&lt;/P&gt;&lt;P&gt;WHERE company_type=Producer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Producers INTO Qlikview\Temp Files\Producers.qvd (QVD);&lt;/P&gt;&lt;P&gt;DROP TABLE Producers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// New Tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clients:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;//Producer_ID&lt;/P&gt;&lt;P&gt;Client_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [Client ID],&lt;/P&gt;&lt;P&gt;Orders AS [# Orders]&lt;/P&gt;&lt;P&gt;FROM Producer_Client.xml&lt;/P&gt;&lt;P&gt;WHERE ISNULL(Producer_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt; client_producer_ID,&lt;BR /&gt; company_type,&lt;BR /&gt; company_name&lt;/P&gt;&lt;P&gt;FROM Company.xml&lt;/P&gt;&lt;P&gt;WHERE company_type=Client;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Clients INTO Qlikview\Temp Files\Clients.qvd (QVD);&lt;/P&gt;&lt;P&gt;DROP TABLE Clients&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// New Tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Client ID],&lt;/P&gt;&lt;P&gt;[# Orders]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Qlikview\Temp Files\Clients.qvd] (QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Producer ID]&lt;/P&gt;&lt;P&gt;[# Orders]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Qlikview\Temp Files\Producers.qvd] (QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 15:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771248#M273746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-23T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771249#M273747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to specify your input better, the output will be self explanatory. It's always dangerous when merging two IDs into one. Can ProducerID and ClientID have the same value? Do you have anything in the first table that specifies if it is a Client or Producer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 15:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771249#M273747</guid>
      <dc:creator>linusblomberg</dc:creator>
      <dc:date>2015-02-23T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771250#M273748</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;could you please attached a qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 15:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771250#M273748</guid>
      <dc:creator />
      <dc:date>2015-02-23T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771251#M273749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Producer_ID and Client_ID will always be the different. They are basically subsets of the larger list Client_Producer_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample version of the file with the most recent attempt described above. I had previously tried to (left) join the tables as normal. Either way I'm getting a loop error or blank fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771251#M273749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-23T17:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771252#M273750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I know what you're doing wrong. First there is faulty where statement, you probably want where 'not' isnull():&lt;/P&gt;&lt;P&gt;Clients:&lt;/P&gt;&lt;P&gt;LOAD client_id AS [Client ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //producer_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orders&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CLIENT_PRODUCER)&lt;/P&gt;&lt;P&gt;WHERE ISNULL(client_id);&lt;/P&gt;&lt;P&gt;------------------------------------------------&lt;/P&gt;&lt;P&gt;on the first and second tab (producer and client) you can use the left join there between the two load statements on each tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the last tab I would use concatenate() instead of a left join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 08:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771252#M273750</guid>
      <dc:creator>linusblomberg</dc:creator>
      <dc:date>2015-02-24T08:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771253#M273751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Linus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, that should have been either WHERE NOT ISNULL(client_id); or else WHERE ISNULL(producer_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have left joined the statements on the first two tabs, but I'm not entirely clear on how the concatenate should be used in the last tab. Would it be possible for you to provide an example of the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the temp QVD files needed or should they be removed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771253#M273751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-24T09:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771254#M273752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771254#M273752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-24T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771255#M273753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here: There is no need to create QVDs in this scenario. Use a resident Load. Also, you don't need a where statement when you left join because only the matches will be joined anyway (given that both tables doesn't contain lots of blank rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway. I would do this (and then you can store Fact as a QVD if you need it in another app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Producers:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD //client_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; producer_id AS [Producer ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orders&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is CLIENT_PRODUCER)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE not ISNULL(producer_id);&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD client_producer_id AS [Producer ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; company_type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; company_name&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is COMPANY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clients:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD client_id AS [Client ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //producer_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orders&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is CLIENT_PRODUCER)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE not ISNULL(client_id);&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD client_producer_id AS [Client ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; company_type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; company_name&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is COMPANY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;&amp;nbsp; load [Producer ID] as ClientProducerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; orders,&lt;/P&gt;&lt;P&gt;&amp;nbsp; company_type, &lt;/P&gt;&lt;P&gt;&amp;nbsp; company_name&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident&amp;nbsp; Producers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Fact)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load [Client ID] as ClientProducerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; orders,&lt;/P&gt;&lt;P&gt;&amp;nbsp; company_type, &lt;/P&gt;&lt;P&gt;&amp;nbsp; company_name&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident&amp;nbsp; Producers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLEs Clients, Producers;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771255#M273753</guid>
      <dc:creator>linusblomberg</dc:creator>
      <dc:date>2015-02-24T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771256#M273754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Linus. This worked perfectly. Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 11:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771256#M273754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-24T11:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Joining one dimension with two from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771257#M273755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, glad I could help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 11:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-one-dimension-with-two-from-another-table/m-p/771257#M273755</guid>
      <dc:creator>linusblomberg</dc:creator>
      <dc:date>2015-02-24T11:45:28Z</dc:date>
    </item>
  </channel>
</rss>

