<?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: Composite Key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858879#M999500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 07:54:45 GMT</pubDate>
    <dc:creator>nihhalmca</dc:creator>
    <dc:date>2015-06-12T07:54:45Z</dc:date>
    <item>
      <title>Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858865#M999486</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Which scenarios we go for 'composite key' except avoiding synthetic keys. can you give any example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is both values (Year and Product) should be same in both key values to get data on selections.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Year&amp;amp;Product AS Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, Product, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011, A, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, B, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, C, 30&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year&amp;amp;Product AS Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, Product, Rev&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011, A, 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, B, 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, X ,3000&lt;/P&gt;&lt;P&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nihhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858865#M999486</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-06-09T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858866#M999487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya,the result is correct!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wht's ur expecting output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858866#M999487</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-09T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858867#M999488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both keys must be same. I mean there is year is common so will get data? or product has to same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: 2013C from table1 and 2013X from table2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858867#M999488</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-06-09T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858868#M999489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; I mean there is year is common so will get data? or product has to same? --no you can't get as per ur current keys.&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;if u want to get ur products based on same year,u have to modify ur keys first,because this case u key is combination of year &amp;amp; product.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858868#M999489</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-09T15:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858869#M999490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;left(Data,4) as Year &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in both tables to get Year value as key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858869#M999490</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-09T15:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858870#M999491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you want to create a composite key ? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;because on the synthetic key ? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858870#M999491</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-09T15:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858871#M999492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihhal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the current scenario both the year and key should match, then only those records will be joined correctly.&amp;nbsp; If you just want to consider year only then join both the tables by year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Left(Key, 4) AS Year,&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;FROM Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Left(Key, 4) AS Year,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM Table2;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;When you execute the above script both the tables are joined by year, so you will get this row as match.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2013&amp;nbsp; xxxxx&amp;nbsp;&amp;nbsp; 2013 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 02:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858871#M999492</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-10T02:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858872#M999493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013C, 2013X data shows by selection of year = 2013. In the scenes both composite key total values should not be same.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;amp;Product&amp;amp;Customer id&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp; key&amp;nbsp; (Table1)&lt;/P&gt;&lt;P&gt;Year&amp;amp;Prodcut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp; key&amp;nbsp; (Table2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when i&amp;nbsp; select Year it shows data from 2 tables&lt;/P&gt;&lt;P&gt;if i select Product it shows data from 2 tables&lt;/P&gt;&lt;P&gt;if i select Cutomer id it shows data from table1 itself.&lt;/P&gt;&lt;P&gt;Am i right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nihhal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 10:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858872#M999493</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-06-11T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858873#M999494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Shiva,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2013C, 2013X data shows by selection of year = 2013. In the scenes both composite key total values should not be same.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For example:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Year&amp;amp;Product&amp;amp;Customer id&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp; key&amp;nbsp; (Table1)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Year&amp;amp;Prodcut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp; key&amp;nbsp; (Table2)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Here when i&amp;nbsp; select Year it shows data from 2 tables&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if i select Product it shows data from 2 tables&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if i select Cutomer id it shows data from table1 itself.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Am i right?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Nihhal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 10:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858873#M999494</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-06-11T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858874#M999495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wht ever the result is displaying as per the current selections are is absolutly right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didn't ding customer id in table 1?whr it's?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u can tell wht is ur expected out put here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 10:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858874#M999495</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-11T10:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858875#M999496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for writing shiva.&lt;/P&gt;&lt;P&gt;There is no customer id just i given example.&lt;/P&gt;&lt;P&gt;I have confusion which scenarios we go for 'composite key' except avoiding synthetic keys. can you give any example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Nihhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858875#M999496</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-06-11T13:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858876#M999497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as u said,for avoiding synthetic keys u can use composite keys as technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example ur have 3 tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1 having 10 fields,out of 10 fields 5 are key fields&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;table2 having 15 fields,out of 15 fields 7 are key fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;table3 having 20 fields,out of 20 fields 3 are key fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;but,we have to map all these tables,here some of the key fields in table1 will match with tabl2 key fields and some of the key fields in table2 will match with table3 keys fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;so,this is the case u have to create multiple key field by combining those fields from corresponding table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;note: pls mark whichever post helps to as helpful.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 14:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858876#M999497</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-11T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858877#M999498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you're assuming that keys can do partial matching which they cannot. If all customer IDs have values, the keys will never match. and the two tables will be in separate universes (that is if you rename at least one set of &lt;BR /&gt;Product &amp;amp; Year fields, otherwise you'll have a syntehtic key as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a simple solution, LEFT JOIN the second table to the first. Rows that have a Sales amount but no Rev value will have Null in the Rev field. Rows that have a Rev value but no Sales amount will have Null in the Sales field. Rows that have both will show both when you select the corresponding Year (&amp;amp; Product).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to forcibly link with a key, create identical keys in both tables and rename at least one set of Product/Year fields. You will now have a problem with Dimension filtering because the only Product field left will only show values from one table. That's why you should extract in a second step all Product/Year pairs from both tables into a third table, together with their key values. Then drop both Product and Year fields from the original tables, as they will become Dimensions in the third table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 14:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858877#M999498</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-11T14:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858878#M999499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Year&amp;amp;Product AS Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, Product, Sales&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011, A, 10&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, B, 20&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, C, 30&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Year&amp;amp;Product AS Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, Product, Rev&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011, A, 1000&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, B, 2000&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, X ,3000&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bridgetable:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Product &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident of Table1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Product &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident of Table2;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop fields Year,Product from Table1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Drop fields Year,Product from Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 15:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858878#M999499</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-06-11T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Key</title>
      <link>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858879#M999500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 07:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Composite-Key/m-p/858879#M999500</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-06-12T07:54:45Z</dc:date>
    </item>
  </channel>
</rss>

