<?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: LINK table with mixed keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460942#M610867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your link table can look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK TABLLE:&lt;/P&gt;&lt;P&gt;product id &amp;amp;'_'&amp;amp; supplier id as product id_supplier id_KEY,&lt;/P&gt;&lt;P&gt;product id &amp;amp;'_'&amp;amp; supplier id &amp;amp;'_'&amp;amp; customer id as product id_supplier id_customer id_KEY,&lt;/P&gt;&lt;P&gt;product id &amp;amp;'_'&amp;amp; supplier id &amp;amp;'_'&amp;amp; customer id &amp;amp;'_'&amp;amp; debtor id as product id_supplier id_customer id_debtor id_KEY,&lt;/P&gt;&lt;P&gt;product id,&lt;/P&gt;&lt;P&gt;supplier id,&lt;/P&gt;&lt;P&gt;customer id,&lt;/P&gt;&lt;P&gt;debtor id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;think about using autonumber function to generate the keys&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4748"&gt;Autonumber function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 07:21:09 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2018-01-09T07:21:09Z</dc:date>
    <item>
      <title>LINK table with mixed keys</title>
      <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460941#M610866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you create a link table for&amp;nbsp; the data model&lt;/P&gt;&lt;P&gt;table 1 has 2 fields in common with other 4 tables&lt;/P&gt;&lt;P&gt;table 2 has 3&amp;nbsp; fields in common with other 3 tables&lt;/P&gt;&lt;P&gt;table 3 has 4 fields in common with 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables hae mixed granualarities , one is static , one is month end balance , once is daily .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1&lt;/P&gt;&lt;P&gt;product id /supplier id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2&lt;/P&gt;&lt;P&gt;product id/ supplier id / customer id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 3&lt;/P&gt;&lt;P&gt;product id/ supplier id / customer id/debtor id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 4&lt;/P&gt;&lt;P&gt;product id/ supplier id / customer id/debtor id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 06:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460941#M610866</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2018-01-09T06:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: LINK table with mixed keys</title>
      <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460942#M610867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your link table can look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK TABLLE:&lt;/P&gt;&lt;P&gt;product id &amp;amp;'_'&amp;amp; supplier id as product id_supplier id_KEY,&lt;/P&gt;&lt;P&gt;product id &amp;amp;'_'&amp;amp; supplier id &amp;amp;'_'&amp;amp; customer id as product id_supplier id_customer id_KEY,&lt;/P&gt;&lt;P&gt;product id &amp;amp;'_'&amp;amp; supplier id &amp;amp;'_'&amp;amp; customer id &amp;amp;'_'&amp;amp; debtor id as product id_supplier id_customer id_debtor id_KEY,&lt;/P&gt;&lt;P&gt;product id,&lt;/P&gt;&lt;P&gt;supplier id,&lt;/P&gt;&lt;P&gt;customer id,&lt;/P&gt;&lt;P&gt;debtor id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;think about using autonumber function to generate the keys&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4748"&gt;Autonumber function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 07:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460942#M610867</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-01-09T07:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: LINK table with mixed keys</title>
      <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460943#M610868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be give more clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1&lt;/P&gt;&lt;P&gt;product id /supplier id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2&lt;/P&gt;&lt;P&gt;product id/ supplier id / customer id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 3&lt;/P&gt;&lt;P&gt;product id/ supplier id / customer id/debtor id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 4&lt;/P&gt;&lt;P&gt;product id/ supplier id / customer id/debtor id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LinkTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id]) as %Key, [product id], [supplier id] Resident table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(LinkTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id] &amp;amp; '|' &amp;amp; [customer id]) as %Key, [product id], [supplier id], [customer id] Resident table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(LinkTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id] &amp;amp; '|' &amp;amp; [customer id] &amp;amp; '|' &amp;amp; [debtor id]) as %Key, [product id], [supplier id], [customer id], [debtor id] Resident table3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(LinkTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id] &amp;amp; '|' &amp;amp; [customer id] &amp;amp; '|' &amp;amp; [debtor id]) as %Key, [product id], [supplier id], [customer id], [debtor id] Resident table4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id] From table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id], [customer id] From table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id], [customer id], [debtor id] From table3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id], [customer id], [debtor id] From table4;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 07:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460943#M610868</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-09T07:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: LINK table with mixed keys</title>
      <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460944#M610869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I amended your code with the underlined lines of code , that table needs that key to connect to various other tables . This datamodel now creates a synthetic key with the extra key added , is this the best way to be doing things ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LinkTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id]) as %Key, [product id], [supplier id] Resident table1;&lt;/STRONG&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;STRONG&gt;Concatenate(LinkTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id] &amp;amp; '|' &amp;amp; [customer id]) as %Key, [product id], [supplier id], [customer id] Resident table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(LinkTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id] &amp;amp; '|' &amp;amp; [customer id] &amp;amp; '|' &amp;amp; [debtor id]) as %Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;([product id] &amp;amp; '|' &amp;amp; [customer id] as key_2,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, [product id], [supplier id], [customer id], [debtor id] Resident table3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(LinkTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load AutoNumber([product id] &amp;amp; '|' &amp;amp; [supplier id] &amp;amp; '|' &amp;amp; [customer id] &amp;amp; '|' &amp;amp; [debtor id]) as %Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;([product id] &amp;amp; '|' &amp;amp; [customer id] as key_2&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; [product id], [supplier id], [customer id], [debtor id] Resident table4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id] From table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id], [customer id] From table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id], [customer id], [debtor id] From table3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields [product id], [supplier id], [customer id], [debtor id] From table4;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460944#M610869</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2018-01-10T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: LINK table with mixed keys</title>
      <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460945#M610870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove them which are Underlined then it won't produce Synthetic from sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460945#M610870</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-10T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: LINK table with mixed keys</title>
      <link>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460946#M610871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me create a sample model , and show you why they needed to get the correct result . Then you can show me a better way to do it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LINK-table-with-mixed-keys/m-p/1460946#M610871</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2018-01-11T06:18:49Z</dc:date>
    </item>
  </channel>
</rss>

