<?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 Synthetic key problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243159#M92870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it!&lt;/P&gt;&lt;P&gt;this will only prevent the synthectic keys but this way &lt;/P&gt;&lt;P&gt;ITEMS table and won't be connected to Balances table and Sales Detail table&lt;/P&gt;&lt;P&gt;and store table won't be connected to Balances table and Sales Detail table too.&lt;/P&gt;&lt;P&gt;I need all these 4 ables connected using these 2 keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 16:12:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-29T16:12:31Z</dc:date>
    <item>
      <title>Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243157#M92868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm trying to link some tables and im getting a synthetic key.i have for example 4 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1,table2,table3 are related with a key1&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;table2,table3,table4 are related with another key2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key1 and key2 are going to create a synthetic key between table2 and table3.&lt;/P&gt;&lt;P&gt;Note that there are no other keys i can use to link these tables.&lt;/P&gt;&lt;P&gt;is there any other way to link these tables without creating a synthetic key?does the synthetic key have any impact on the performance?can i leave it or not?&lt;/P&gt;&lt;P&gt;please find attached an example of what i'm trying to ask about:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you can help me with this,&lt;/P&gt;&lt;P&gt;thank you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243157#M92868</guid>
      <dc:creator />
      <dc:date>2011-06-29T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243158#M92869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new field 'CombinedKey' using the function AutoNumber(SKUKEY &amp;amp; '|' &amp;amp; StoreKey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tour table keys should be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) ITEMS table Fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SKUKEY (key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Store table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store key (Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) Sales Detail table fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CombinedKey (key)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SKUKEY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4) Balances table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CombinedKey (key)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SKUKEY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will prevent the synthetic keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 16:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243158#M92869</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-06-29T16:05:09Z</dc:date>
    </item>
    <item>
      <title>Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243159#M92870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it!&lt;/P&gt;&lt;P&gt;this will only prevent the synthectic keys but this way &lt;/P&gt;&lt;P&gt;ITEMS table and won't be connected to Balances table and Sales Detail table&lt;/P&gt;&lt;P&gt;and store table won't be connected to Balances table and Sales Detail table too.&lt;/P&gt;&lt;P&gt;I need all these 4 ables connected using these 2 keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 16:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243159#M92870</guid>
      <dc:creator />
      <dc:date>2011-06-29T16:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243160#M92871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is appropriate for the sales details table and the balance store table to be linked together by both SKUKEY and StoreKey, then the synthetic key that QlikView created is an appropriate way to link them and should be left alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full disclosure - this is my personal opinion, and my personal opinion is still controversial.&amp;nbsp; We do not have expert consensus one way or another.&amp;nbsp; My views are presented in this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/10279?start=30&amp;amp;tstart=0"&gt;http://community.qlik.com/thread/10279?start=30&amp;amp;tstart=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as krishnamoorthy's suggestion, that's pretty much the typical approach taken (and even suggested by the reference manual), except for minor errors in presentation.&amp;nbsp; The combined key should be built as described, but you need five tables instead of four:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Key Table: CombinedKey, SKUKEY, StoreKey&lt;/LI&gt;&lt;LI&gt;Sales Details Table: CombinedKey, other fields&lt;/LI&gt;&lt;LI&gt;Balance Store Table: CombinedKey, other fields&lt;/LI&gt;&lt;LI&gt;ITEMS TABLE: SKUKEY, other fields&lt;/LI&gt;&lt;LI&gt;Store Table: StoreKey, other fields&lt;/LI&gt;&lt;/UL&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;P&gt;All the tables are now connected properly, some just a little indirectly through your new Key Table.&amp;nbsp; However, this layout is equivalent to what the synthetic key provides, and I believe there is no performance benefit to switching to this new data model.&amp;nbsp; I believe all it would do is make your load script more complicated and slower to execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 23:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243160#M92871</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-29T23:24:23Z</dc:date>
    </item>
    <item>
      <title>Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243161#M92872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is using a link table can help me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 08:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243161#M92872</guid>
      <dc:creator />
      <dc:date>2011-06-30T08:30:56Z</dc:date>
    </item>
    <item>
      <title>Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243162#M92873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "Key Table" I mentioned is a link table.&amp;nbsp; It can help you remove the synthetic key.&amp;nbsp; But I don't think it will improve load or chart performance in any way.&amp;nbsp; Did I misunderstand the question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 16:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243162#M92873</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-30T16:18:02Z</dc:date>
    </item>
    <item>
      <title>Synthetic key problem</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243163#M92874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you did understand my question,you're right John it only helps in removing the synthetic key.i'm still trying to fix it anyway.&lt;/P&gt;&lt;P&gt;for no what i did is creating another store table similar to the original one but of course with different field names and i linked one to the sales and the other to the Balance Store table!&lt;/P&gt;&lt;P&gt;i couldn't find any other way to get the right results!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 22:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-key-problem/m-p/243163#M92874</guid>
      <dc:creator />
      <dc:date>2011-06-30T22:31:05Z</dc:date>
    </item>
  </channel>
</rss>

