<?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: Connecting up two different tables to a third table using the same key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225655#M623030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason for the above error is&lt;/P&gt;&lt;P&gt;Table &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Invoice&lt;/SPAN&gt; and Table &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Account&lt;/SPAN&gt; are connected using &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;AccountKey&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;SalesPerson&lt;/SPAN&gt; is also connected btw the tables &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;Invoice&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt; using &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relation btw &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Invoice&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and Table &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Account&lt;/SPAN&gt; is not required as they are indirectly connected using &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;SalesPerson filed(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey.&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;you can rename one of the &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;AccountKey in one of the tables &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;Invoice&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 11:28:48 GMT</pubDate>
    <dc:creator>parimikittu</dc:creator>
    <dc:date>2016-12-23T11:28:48Z</dc:date>
    <item>
      <title>Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225648#M623023</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;The structure of our data is something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Account can have a salesperson&lt;/P&gt;&lt;P&gt;Invoice can have a salesperson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salesperson has an id which is linked via account and invoice, and that id has a name next to it, what I would rather not do is do an apply map as there is additional data as part of this table and I believe applymap only just vlookups the id against a descriptor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise it creates then syns, how would you recommend I bypass this problem? As syns I presume are not a great thing to have? As they seem to be junction tables to turn a many to many into a 1 to many relationship. Otherwise I am just creating a brand new table with the same data but a different name to get this working and it feels inefficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 16:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225648#M623023</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-12-22T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225649#M623024</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Salesperson&lt;/STRONG&gt; table has &lt;STRONG&gt;id&lt;/STRONG&gt; which is used to connect with two other tables&lt;STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Account &lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Invoice?&lt;/STRONG&gt;There are three table to join with same id field? You use below logic&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;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Salesperson&lt;/STRONG&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;Load &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id as Salesperson_invoice_id&amp;nbsp; //Create a new Field with same &lt;STRONG&gt;id &lt;/STRONG&gt;and&lt;STRONG&gt; rename &lt;/STRONG&gt;to use to&lt;STRONG&gt; relate with Invoice&lt;/STRONG&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;FROM Salesperson;&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;use &lt;STRONG&gt;id&lt;/STRONG&gt; column to &lt;STRONG&gt;connect&lt;/STRONG&gt; to &lt;STRONG&gt;Account&lt;/STRONG&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Salesperson_invoice_id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;to &lt;STRONG&gt;connect&lt;/STRONG&gt; to &lt;STRONG&gt;Invoice&lt;/STRONG&gt;. Let me know if the problem is solved.&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>Fri, 23 Dec 2016 10:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225649#M623024</guid>
      <dc:creator>parimikittu</dc:creator>
      <dc:date>2016-12-23T10:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225650#M623025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have tried that and got the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. QlikView will cut the loop(s) by setting one or more tables as loosely coupled. Settings for loosely coupled tables can be modified after script execution in the tables page of the document properties dialog.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225650#M623025</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-12-23T11:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225651#M623026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please past your code. Will check and advise the correction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225651#M623026</guid>
      <dc:creator>parimikittu</dc:creator>
      <dc:date>2016-12-23T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225652#M623027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you able to post your load script contents?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225652#M623027</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-12-23T11:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225653#M623028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The appropriate parts are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14824919236665410" jivemacro_uid="_14824919236665410"&gt;
&lt;P&gt;Invoice:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Linked keys&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Z_ID" as InvoiceKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ORD_NO &amp;lt;&amp;gt; '',COMPANY&amp;amp;'*'&amp;amp;WAREHOUSE&amp;amp;'*'&amp;amp;ORD_NO,) as OrderKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(CREDIT_NOTE &amp;lt;&amp;gt; '',COMPANY&amp;amp;'*'&amp;amp;WAREHOUSE&amp;amp;'*'&amp;amp;CREDIT_NOTE,) as CreditKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMER as AccountKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMER as ContactKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN_TRANNO as InventoryTransactionKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AR_TRANNO as AccountsReceivableTransactionKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'N' as InvoiceArchived, // Some dictionaries being used include SM.INVOICE.PRT and SM.INVOICE.BU&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRANDATE as TransactionDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INV_NBR as InvoiceNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WAREHOUSE as Warehouse,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(INV_NBR,1) as InvoiceType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Mapping_InvoiceType', Left(INV_NBR,1) ,'Unknown') as InvoiceTypeDescription,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CARRIER as Carrier,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Mapping_InvoiceCarrier', CARRIER, null()) as CarrierDescription,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALESM_CODE as InvoiceSalesPersonKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER_TYPE as OrderType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Mapping_InvoiceOrderType', ORDER_TYPE, null()) as OrderTypeDescription,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPER as DespatchOperator,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Mapping_User',OPER,ApplyMap('Mapping_User2',OPER,null())) as DespatchOperatorName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE as DespatchDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME as DespatchTime,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GTOTAL as TotalExVat,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FREIGHT as TotalFreight,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTH_CHARGES as TotalOtherCharges,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TAX_TOTAL as TotalTax,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICE_TOT as TotalInvoice;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;/P&gt;
&lt;P&gt;FROM SM_INVOICE WHERE TRANDATE &amp;gt;=&amp;nbsp; '$(vGenDate)';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Account:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Z_ID as AccountKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; CUST_NAME as AccountName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(len(CUSTDEF)&amp;lt;1,null(),CUSTDEF) as AccountType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ApplyMap('Mapping_AccountType', CUSTDEF, null()) as AccountTypeDescription,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(len(SIC07_CODE)&amp;lt;1,null(),SIC07_CODE) as AccountSicCode,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(len(REG_NO_C)&amp;lt;1,null(),REG_NO_C) as AccountRegistrationNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(len(SALESM_CODE)&amp;lt;1,'HA',SALESM_CODE) as AccountSalesPersonKey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(len(REC_C)&amp;lt;1,null(),REC_C) as AccountRegionalEducationalConsultantNo;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SQL SELECT *&lt;/P&gt;
&lt;P&gt;FROM "AR_MASTER";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SalesPerson:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Z_ID as InvoiceSalesPersonKey,&lt;/P&gt;
&lt;P&gt;Z_ID as AccountSalesPersonKey,&lt;/P&gt;
&lt;P&gt;if(len(SALESM_NAME)&amp;lt;1,ApplyMap('Mapping_User',USER_ID_C,ApplyMap('Mapping_User2',USER_ID_C,null())),SALESM_NAME) as SalesPersonName, // trying to ensure we have the best chance of grabbing a name&lt;/P&gt;
&lt;P&gt;If(len(SALESMAN_GROUP_C)&amp;lt;1,'SALESTEAM',SALESMAN_GROUP_C) as SalesPersonGroupKey;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;/P&gt;
&lt;P&gt;FROM "SM_SALESMAN";&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225653#M623028</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-12-23T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225654#M623029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post a screenshot from Table viewer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225654#M623029</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-12-23T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225655#M623030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason for the above error is&lt;/P&gt;&lt;P&gt;Table &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Invoice&lt;/SPAN&gt; and Table &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Account&lt;/SPAN&gt; are connected using &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;AccountKey&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;SalesPerson&lt;/SPAN&gt; is also connected btw the tables &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;Invoice&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt; using &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relation btw &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Invoice&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and Table &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Account&lt;/SPAN&gt; is not required as they are indirectly connected using &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;SalesPerson filed(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;InvoiceSalesPersonKey.&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;you can rename one of the &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;AccountKey in one of the tables &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;Invoice&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225655#M623030</guid>
      <dc:creator>parimikittu</dc:creator>
      <dc:date>2016-12-23T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225656#M623031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Presume it's this bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z_ID as InvoiceSalesPersonKey, = change this eg as &lt;SPAN style="font-size: 13.3333px;"&gt;SalesPersonKey&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Z_ID as AccountSalesPersonKey, = get&amp;nbsp; rid of this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(len(SALESM_CODE)&amp;lt;1,'HA',SALESM_CODE) as AccountSalesPersonKey, = change to &lt;SPAN style="font-size: 13.3333px;"&gt;SalesPersonKey&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; SALESM_CODE as InvoiceSalesPersonKey,&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt; = change to &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SalesPersonKey&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225656#M623031</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-12-23T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225657#M623032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do that it then gets back to the $SYN tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="147514" alt="syn.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147514_syn.png" style="height: 256px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is Invoice and account can have two different salespeople attached but the data they pull from key wise is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And with having Account and Invoice SalespersonKey&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlik.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147533_qlik.png" style="height: 335px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 11:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225657#M623032</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-12-23T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225658#M623033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have 2 roles that a person can perform :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Account Manager&lt;/LI&gt;&lt;LI&gt;Sales&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your visualisation requirements is there any need to have person as a dimension and have expressions relevant to both roles ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suspect not as this would probably not return logically results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 12:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225658#M623033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225659#M623035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An invoice needs to be there for historical significance as an account can be updated. I guess the only way is to duplicate the tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 12:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225659#M623035</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-12-23T12:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting up two different tables to a third table using the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225660#M623036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your &lt;EM&gt;SalesPerson&lt;/EM&gt; table only has 3 fields :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Z_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you could do a couple of Mapping Loads&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using &lt;SPAN style="font-size: 13.3333px;"&gt;Z_ID&lt;/SPAN&gt; to return Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using Z_ID to return Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a couple applymaps whilst loading the Invoice table creating 2 fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice Sales Person&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice Sales Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a couple more applymaps for the Account table creating&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account Manager&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account Manager Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus you'll have no SalesPerson table in the resultant data model. ergo no synthetic keys or loops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-up-two-different-tables-to-a-third-table-using-the/m-p/1225660#M623036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T13:20:47Z</dc:date>
    </item>
  </channel>
</rss>

