<?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: How to avoid synthetic key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418813#M821134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic key is how QlikView works by default when two tables share two or more fields named alike.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In itself, it is not wrong if you want it so, in this case, you have both fields Organization_ID and Item_ID in at least two tables, and this may be correct. It will display as an additional table in QlikView data model because that is how it is actually stored: you need the pointers for those two columns and its unique values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synthetic keys can be a warning if you are not expecting them to happen and can affect both performance and the results in your charts if they are not generated on purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested, you could create yourself a composite key using both fields in the fact and dimensional tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 12:28:12 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2017-08-21T12:28:12Z</dc:date>
    <item>
      <title>How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418804#M821120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master table with composite PK. Item_id and Organization_id. And a detail table has few records match with master table. When i load data keeping both column name same to join them it creates a synthetic key. I dont want to see it in my data model as the direct join is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to avoid it somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Zahid Rahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418804#M821120</guid>
      <dc:creator>zahidrahim_ocp</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418805#M821121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be manually will create a synthetic key as a single field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418805#M821121</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-08-17T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418806#M821123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example createing syntetic key manually in attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418806#M821123</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-08-17T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418807#M821125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou for the response but it will create a separate table which will create my data model complex as i have 25 to 30 tables in the data model. Is there any other workaround i heared about Autonumber()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 13:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418807#M821125</guid>
      <dc:creator>zahidrahim_ocp</dc:creator>
      <dc:date>2017-08-17T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418808#M821126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Autonumber() instead of applying field names, the essence of this does not change. With large amounts of data, perhaps Autonumber() will work somewhat faster. If the amount of data is relatively small (hundreds of thousands - several million lines), there should not be much difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 13:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418808#M821126</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-08-17T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418809#M821128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zahid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;given that your master table contains the Item ID, and Organisation ID, and both master and detail tables have the composite, I would drop Item ID and Organisation ID from your detail table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 14:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418809#M821128</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-08-17T14:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418810#M821130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.analyticsvidhya.com/blog/2014/11/synthetic-keys-qlikview-simplified/" title="https://www.analyticsvidhya.com/blog/2014/11/synthetic-keys-qlikview-simplified/"&gt;https://www.analyticsvidhya.com/blog/2014/11/synthetic-keys-qlikview-simplified/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 14:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418810#M821130</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2017-08-17T14:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418811#M821132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you dropped from detail table then how the tables get joined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418811#M821132</guid>
      <dc:creator>zahidrahim_ocp</dc:creator>
      <dc:date>2017-08-21T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418812#M821133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;zahid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you'll need to create your composite key in your detail table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 12:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418812#M821133</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-08-21T12:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid synthetic key</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418813#M821134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic key is how QlikView works by default when two tables share two or more fields named alike.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In itself, it is not wrong if you want it so, in this case, you have both fields Organization_ID and Item_ID in at least two tables, and this may be correct. It will display as an additional table in QlikView data model because that is how it is actually stored: you need the pointers for those two columns and its unique values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synthetic keys can be a warning if you are not expecting them to happen and can affect both performance and the results in your charts if they are not generated on purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested, you could create yourself a composite key using both fields in the fact and dimensional tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/1418813#M821134</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-08-21T12:28:12Z</dc:date>
    </item>
  </channel>
</rss>

