<?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 Reg:How to avoid Synthetic Keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236009#M87232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When loading tables from any source, I'm using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Autonumber('TABLENAME ' &amp;amp; FieldName) AS QlikViewFieldName&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;so you can avoid generating same code from different fields witht the same value, and likewise using, if needed in your project, the string 'TABLENAME ' to identify where the field comes from easier in your script.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Miguel Angel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 19:19:34 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2009-11-09T19:19:34Z</dc:date>
    <item>
      <title>Reg:How to avoid Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236006#M87229</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;In my QVW''s I am having more number of synthetic keys.Though it is unavoidable in QV,I want to minimize number of synthetic keys in my application.Is there is any possible way available to reduce,let me know the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 18:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236006#M87229</guid>
      <dc:creator />
      <dc:date>2009-11-09T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Reg:How to avoid Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236007#M87230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the functions like Hash128.&lt;/P&gt;&lt;P&gt;Hash128(Field1, Field2) as Key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 18:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236007#M87230</guid>
      <dc:creator />
      <dc:date>2009-11-09T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Reg:How to avoid Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236008#M87231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure filednames are unique if you don't want QlikView to link on those fileds. Qlikview automatically join two tables on fields with identical (case sensitive!) filednames. Synthetic keys (in my experience) start happening when you have two or more tables that have a number of fields with identical names. QlikView then assumes you want to link those tables, and does so by creating synth keys. It is good practice to avoid this at all times, because it may also cause undesired effects in your analyses. another scenario is when you would like to have a union between tables, but the tables do not contain the same number of fields. QlikView then produces TableName;TableName_1 and a synthetic key (or -table) with all corresponding fields.&lt;/P&gt;&lt;P&gt;We usually use AutoNumber(field &amp;amp; field &amp;amp; ......,'ListName') as "keyname" to link tables, and avoid using identical fieldnames.&lt;/P&gt;&lt;P&gt;Success!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 18:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236008#M87231</guid>
      <dc:creator>happydays1967</dc:creator>
      <dc:date>2009-11-09T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Reg:How to avoid Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236009#M87232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When loading tables from any source, I'm using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Autonumber('TABLENAME ' &amp;amp; FieldName) AS QlikViewFieldName&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;so you can avoid generating same code from different fields witht the same value, and likewise using, if needed in your project, the string 'TABLENAME ' to identify where the field comes from easier in your script.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Miguel Angel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 19:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236009#M87232</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-09T19:19:34Z</dc:date>
    </item>
    <item>
      <title>Reg:How to avoid Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236010#M87233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give a look: http://michaelellerbeck.com/2008/08/22/qlikview-synthetic-keys/&lt;/P&gt;&lt;P&gt;But, I suggest to use functions like (autonumber, hash), how suggested for all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 19:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236010#M87233</guid>
      <dc:creator />
      <dc:date>2009-11-09T19:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:How to avoid Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236011#M87234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a composite Key using the common fields in both the tables ... In my Example Month,State,Location,City is&lt;/P&gt;&lt;P&gt;common and I created them as Customer_Key(Composite Key name ) for my reference..&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Avoid Synthetic Key.JPG" class="jive-image image-1" src="/legacyfs/online/151375_Avoid Synthetic Key.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I think this may help you.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 09:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-How-to-avoid-Synthetic-Keys/m-p/236011#M87234</guid>
      <dc:creator />
      <dc:date>2017-01-31T09:53:14Z</dc:date>
    </item>
  </channel>
</rss>

