<?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: Data Model / Synthetic Keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877125#M306310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NCMR table:&lt;/P&gt;&lt;P&gt;Load-------&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;COMPLAINTS table:&lt;/P&gt;&lt;P&gt;Load------&lt;/P&gt;&lt;P&gt;rename/qualify use fro AGILE table but ORIGINATOR field is key field it maintains both tables relation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[[[[or]]]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linktable use between the tables;;;;;;&lt;/P&gt;&lt;P&gt;by using compositekey,,,where common fields present in tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 19:35:21 GMT</pubDate>
    <dc:creator>pratap6699</dc:creator>
    <dc:date>2015-06-11T19:35:21Z</dc:date>
    <item>
      <title>Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877123#M306308</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;Any feedback on this data model would be appreciated.&amp;nbsp; Im trying to eliminate the synthetic keys, but Im in need of a direction.&amp;nbsp; anyone would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 18:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877123#M306308</guid>
      <dc:creator>leocattqv</dc:creator>
      <dc:date>2015-06-11T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877124#M306309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way to get rid of Synthetic Keys is to make a "surrogate key" by concatenating the different parts of the synthetic key into one single field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance&amp;nbsp; in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complaints:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS &amp;amp; '|' &amp;amp; CREATION_DATE &amp;amp; '|' &amp;amp; AGE &amp;amp; '|' &amp;amp; CREATION_YEAR &amp;amp; '|' &amp;amp; CREATION_MONTH &amp;amp; '|' &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SITE &amp;amp; '|' &amp;amp; PART_NUMBER &amp;amp; '|' &amp;amp; PRODUCT_BRAND &amp;amp; '|' &amp;amp; PART_DESC AS %ComplaintsKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This %ComplaintsKey is quite long so to make it much more space efficient your could use AutoNumber().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber( STATUS &amp;amp; '|' &amp;amp; ...........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..................)&amp;nbsp; AS %ComplaintKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to construct a corresponding surrogate key in the table that should connect to Complaints and concatenate the fields in the same order or they will not match. A synthetic key does not care about the order of fields that are part of the keys in each of the tables in fact. Make sure to put a separating character between each field while concatenating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from the QlikView Reference Manual page 26 "Data Structures":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;An overall analysis of the intended table structure by the application designer is recommended, including the following:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Forming the own non-composite keys, typically using string concatenation inside an AutoNumber &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;script function.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Making sure only the necessary fields connect. If for example a date is used as a key, make sure not &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;to load e.g. year, month or day_of_month from more than one internal table.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877124#M306309</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-11T19:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877125#M306310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NCMR table:&lt;/P&gt;&lt;P&gt;Load-------&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;COMPLAINTS table:&lt;/P&gt;&lt;P&gt;Load------&lt;/P&gt;&lt;P&gt;rename/qualify use fro AGILE table but ORIGINATOR field is key field it maintains both tables relation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[[[[or]]]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linktable use between the tables;;;;;;&lt;/P&gt;&lt;P&gt;by using compositekey,,,where common fields present in tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877125#M306310</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-06-11T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877126#M306311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Catt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the tables shown in that pic are fact tables try to build a link table. It is only an assumption &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;.&amp;nbsp; see links attached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6963"&gt;Avoid Synthetic Key and Loop in Data Modeling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5198"&gt;MASTERTABLE (LINKTABLE or Concatenated FACT Table)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877126#M306311</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2015-06-11T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877127#M306312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview is quite efficient in creating these synthetic keys, there have been some argues but generally if the created synthetic keys are as you would by creating composite keys yourself, don't bother. You only need to make sure that there are no unwanted links made (You can qualify/rename these fields)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 20:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877127#M306312</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-11T20:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877128#M306313</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;regarding synthetic keys please also read this legendary thread from &lt;A href="https://community.qlik.com/qlik-users/2226"&gt;JohnW&lt;/A&gt;‌:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/10279"&gt;Should We Stop Worrying and Love the Synthetic Key?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 23:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877128#M306313</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-11T23:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877129#M306314</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;an alternative method to create the already proposed combined key could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutonumberHash128(field1, field2, field3, ...)&amp;nbsp; as %combinedKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 23:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877129#M306314</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-11T23:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877130#M306315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Ganesh - the articles helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only need 1 field to tie them all together - thats what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 00:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877130#M306315</guid>
      <dc:creator>leocattqv</dc:creator>
      <dc:date>2015-06-12T00:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877131#M306316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome Catt. i am glad that it helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 07:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Synthetic-Keys/m-p/877131#M306316</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2015-06-12T07:58:52Z</dc:date>
    </item>
  </channel>
</rss>

