<?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: Duplicate Fields in tables without SYN keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900821#M1000497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still getting SYN keys, &lt;/P&gt;&lt;P&gt;So my tables are linked on Product ID, then I do the mapping as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product_Table:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;ApplyMap('NameChange',Name1,Null()) as MasterName&lt;/P&gt;&lt;P&gt;Resident Products;&lt;/P&gt;&lt;P&gt;Drop Table Products'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales_Table:&lt;/P&gt;&lt;P&gt;ApplyMap('NameChange',Name2,Null()) as MasterName&lt;/P&gt;&lt;P&gt;Resident Sales;&lt;/P&gt;&lt;P&gt;Drop Table Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running script it is linked on the keys Product ID and MasterName but I'm getting the SYN key there. Am I doing this correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 11:57:33 GMT</pubDate>
    <dc:creator>alanmcgrath</dc:creator>
    <dc:date>2015-06-03T11:57:33Z</dc:date>
    <item>
      <title>Link tables by multiple fields without SYN keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900819#M1000495</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;I have an app with several tables and some common fields between them.&amp;nbsp; I have joined and concatenated the tables to eliminate synthetic keys and now have reduced the model down to 2 very large tables.&lt;/P&gt;&lt;P&gt;These 2 tables are linked by a Product ID code.&amp;nbsp; In each of the tables there is also are Product name field, the Product names within the field are similar to each other.&amp;nbsp; Right now both these Product names are named differently within the separate tables so they don't create synthetic keys and errors.&amp;nbsp; However, I want to be able to join/link the tables based on master Product Name (perhaps using a mapping load) as well as still having it joined/linked at Product ID.&lt;/P&gt;&lt;P&gt;I've tried concatenating the 2 tables into one table but that creates a table that doesn't work for the analysis I'm trying to do.&amp;nbsp; I tried mapping the names but I still get synthetic keys.&lt;/P&gt;&lt;P&gt;Is there anyway I can have these tables joined/linked using the Product ID and a master Product Name without getting errors in my data or synthetic keys? Seems like there may be a simple solution but I can't seem to figure it out.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900819#M1000495</guid>
      <dc:creator>alanmcgrath</dc:creator>
      <dc:date>2015-06-02T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Fields in tables without SYN keys</title>
      <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900820#M1000496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your on the right track I believe based on what I'm reading.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ApplyMap&lt;/STRONG&gt;() used in your script should solve this quite efficiently and not add any new tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to create a distinct lookup list of all the Product names and map from the different fields as your 'Master &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Product Name'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 20:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900820#M1000496</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-06-02T20:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Fields in tables without SYN keys</title>
      <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900821#M1000497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still getting SYN keys, &lt;/P&gt;&lt;P&gt;So my tables are linked on Product ID, then I do the mapping as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product_Table:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;ApplyMap('NameChange',Name1,Null()) as MasterName&lt;/P&gt;&lt;P&gt;Resident Products;&lt;/P&gt;&lt;P&gt;Drop Table Products'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales_Table:&lt;/P&gt;&lt;P&gt;ApplyMap('NameChange',Name2,Null()) as MasterName&lt;/P&gt;&lt;P&gt;Resident Sales;&lt;/P&gt;&lt;P&gt;Drop Table Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running script it is linked on the keys Product ID and MasterName but I'm getting the SYN key there. Am I doing this correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900821#M1000497</guid>
      <dc:creator>alanmcgrath</dc:creator>
      <dc:date>2015-06-03T11:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Fields in tables without SYN keys</title>
      <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900822#M1000498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks correct syntax wise. Don't know how your Mapping table '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NameChange'&lt;/SPAN&gt; is setup though.&lt;/P&gt;&lt;P&gt;If you have two Master Names that are the exact same name you will get an error I would think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 12:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900822#M1000498</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-06-03T12:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Fields in tables without SYN keys</title>
      <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900823#M1000499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks.&amp;nbsp; My issue is I want the names to be the same so when I filter on the name it brings data from both tables but I can't break the link on the Product ID.&amp;nbsp; Is there a way to do this without SYN keys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 12:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900823#M1000499</guid>
      <dc:creator>alanmcgrath</dc:creator>
      <dc:date>2015-06-03T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Link tables by multiple fields without SYN keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900824#M1000500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a new field, say Product Key, in the load script of both tables, which is a concatenation of Product ID and Product Name. Keep the names of Product ID and Product Name different in the two tables. This will join the two tables on Product Key and there will be no synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Tab A]:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Product ID] As A_PID,&lt;/P&gt;&lt;P&gt;[Product Name] As A_PName,&lt;/P&gt;&lt;P&gt;[Product ID] &amp;amp; [Product Name] As Product_Key&lt;/P&gt;&lt;P&gt;Resident A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner keep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Tab B]:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Product ID] As B_PID,&lt;/P&gt;&lt;P&gt;[Product Name] As B_PName,&lt;/P&gt;&lt;P&gt;[Product ID] &amp;amp; [Product Name] As Product_Key,&lt;/P&gt;&lt;P&gt;Count&lt;/P&gt;&lt;P&gt;Resident B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table B;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 13:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-tables-by-multiple-fields-without-SYN-keys/m-p/900824#M1000500</guid>
      <dc:creator />
      <dc:date>2015-06-03T13:02:51Z</dc:date>
    </item>
  </channel>
</rss>

