<?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 Reference key problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321944#M1198389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rodrigo;&lt;/P&gt;&lt;P&gt;I came across your thread looking for composite key help, but I can answer your question to Oleg -&lt;/P&gt;&lt;P&gt;You won't lose data. Without knowledge of the contents of your tables I can't gauruntee it but we used to have a similar problem to what you are having and solved it by concatenating two tables and left joining another. Works a treat and having all the data in one table improved performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 03:19:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-15T03:19:05Z</dc:date>
    <item>
      <title>Reference key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321940#M1198385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4103_sourceID:4103" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;guys.. what's the better way to resolve this problem:&lt;/P&gt;&lt;P&gt;In this model, the table TabA join TabB only using the field tabBID. And each table be join with TabC using tabCID each one.&lt;/P&gt;&lt;P&gt;To solve this, I'm thinking to create other tabC, with&lt;/P&gt;&lt;P&gt;other key (tabCID2). And use this new key to join with one of each other tables. Am I on right way?&lt;/P&gt;&lt;P&gt;tks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 20:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321940#M1198385</guid>
      <dc:creator />
      <dc:date>2011-04-14T20:06:55Z</dc:date>
    </item>
    <item>
      <title>Reference key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321941#M1198386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rodrigo,&lt;/P&gt;&lt;P&gt;If you want to avoid the synthetic key, you can create composite keys, for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TabA:LOAD AutoNumber(tabCID &amp;amp; '/' &amp;amp; tabBID) AS LinkAB, tabAID, Afield1FROM tableA; TabB:LOAD AutoNumber(tabCID &amp;amp; '/' &amp;amp; tabBID) AS LinkAB, tabBID, Bfield1FROM tableB; TabC:LOAD tabCID, Cfield1, Cfield2, Cfield3FROM tableC;FROM table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Anyway, a synthetic key is not an error by itself, it only means that you have more than one table with more than one field named alike.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 20:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321941#M1198386</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-14T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Reference key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321942#M1198387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This structure needs to be simplified. The specific way would depend a lot on your business needs and on the relations between those tables.&lt;/P&gt;&lt;P&gt;As an example, if Table A and Table B can be combined into a single table (don't worry about de-normalization, we do it successfully every day), then you are only left with two tables joined by a single key, which is fine.&lt;/P&gt;&lt;P&gt;In a different situation, the right solution would be concatenating all three tables into a single fact. Depending on your analysis needs, this may or may not be the right solution...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 20:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321942#M1198387</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-04-14T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Reference key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321943#M1198388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Miguel!&lt;/P&gt;&lt;P&gt;I understood your diea, but the problem is that tables TabB and TabC are linked only using &lt;B&gt;tabBID&lt;/B&gt;, and not a composite key like tabBID+tabCID.&lt;/P&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;If I use "join" and "concatenate" commands, would I lost data? Or can I solve this using LEFT, RIGHT and FULL joins?&lt;/P&gt;&lt;P&gt;tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 20:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321943#M1198388</guid>
      <dc:creator />
      <dc:date>2011-04-14T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Reference key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321944#M1198389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rodrigo;&lt;/P&gt;&lt;P&gt;I came across your thread looking for composite key help, but I can answer your question to Oleg -&lt;/P&gt;&lt;P&gt;You won't lose data. Without knowledge of the contents of your tables I can't gauruntee it but we used to have a similar problem to what you are having and solved it by concatenating two tables and left joining another. Works a treat and having all the data in one table improved performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 03:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321944#M1198389</guid>
      <dc:creator />
      <dc:date>2011-04-15T03:19:05Z</dc:date>
    </item>
    <item>
      <title>Reference key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321945#M1198390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will never lose data using COncatenate (it's appending one table to another, similar to SQL term "UNION ALL", only allows different table structure).&lt;/P&gt;&lt;P&gt;With LEFT, RIGHT or INNER join, you may lose some data that doesn't exist in the the "primary" table (the type of the join determines what table is "Primary"). By default, JOIN is outer, so you won't lose any data if you use the default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 14:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-key-problem/m-p/321945#M1198390</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-04-15T14:38:12Z</dc:date>
    </item>
  </channel>
</rss>

