<?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/606353#M1105050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you have two tables Region sales and region discount and table Region sales contains by Region and Country and table 2 contains Region,Country,Discount and discount by Region &amp;amp; Country if you load this table a synthetic table is created between two tables with key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG:-&lt;/P&gt;&lt;P&gt;RegionSales:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Sales&lt;/P&gt;&lt;P&gt;Europe,Austria,2344&lt;/P&gt;&lt;P&gt;Africa,Angola,1290&lt;/P&gt;&lt;P&gt;North America,Canada,568&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionDiscount:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Discount&lt;/P&gt;&lt;P&gt;Europe,Austria,120&lt;/P&gt;&lt;P&gt;Africa,Angola,80&lt;/P&gt;&lt;P&gt;North America,Canada,58&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for removing synthetic keys you can rename the keys other&amp;nbsp; wise check the model and make joins between them other wise leave it with association with key Region&amp;amp;Country as Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionSales:&lt;/P&gt;&lt;P&gt;LOAD Region&amp;amp;Country as Key,Sales;&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Sales&lt;/P&gt;&lt;P&gt;Europe,Austria,2344&lt;/P&gt;&lt;P&gt;Africa,Angola,1290&lt;/P&gt;&lt;P&gt;North America,Canada,568&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionDiscount:&lt;/P&gt;&lt;P&gt;LOAD Region&amp;amp;Country as Key,Discount;&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Discount&lt;/P&gt;&lt;P&gt;Europe,Austria,120&lt;/P&gt;&lt;P&gt;Africa,Angola,80&lt;/P&gt;&lt;P&gt;North America,Canada,58&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Explaination:- &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. In the above example there is other possibility to use the tables like if there is same fields then concatenate the 2 tables.&lt;/P&gt;&lt;P&gt;2. You can join this two tables with one unique keys.&lt;/P&gt;&lt;P&gt;3. You can create a link table with this tables and maintain the link table.&lt;/P&gt;&lt;P&gt;4. As you see there is two common fields then you can make a composite keys and link 2 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read a document what is synthetic keys &lt;A href="https://community.qlik.com/message/451496"&gt;What is Synthetic Key?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Apr 2014 05:41:19 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-04-06T05:41:19Z</dc:date>
    <item>
      <title>How to avoid synthetic key??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606352#M1105049</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;am new to the QlikView..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can any one let me know how to avoid Synthetic key with small example........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hanumanth Reddy.Y&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 04:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606352#M1105049</guid>
      <dc:creator />
      <dc:date>2014-04-06T04:05: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/606353#M1105050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you have two tables Region sales and region discount and table Region sales contains by Region and Country and table 2 contains Region,Country,Discount and discount by Region &amp;amp; Country if you load this table a synthetic table is created between two tables with key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG:-&lt;/P&gt;&lt;P&gt;RegionSales:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Sales&lt;/P&gt;&lt;P&gt;Europe,Austria,2344&lt;/P&gt;&lt;P&gt;Africa,Angola,1290&lt;/P&gt;&lt;P&gt;North America,Canada,568&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionDiscount:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Discount&lt;/P&gt;&lt;P&gt;Europe,Austria,120&lt;/P&gt;&lt;P&gt;Africa,Angola,80&lt;/P&gt;&lt;P&gt;North America,Canada,58&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for removing synthetic keys you can rename the keys other&amp;nbsp; wise check the model and make joins between them other wise leave it with association with key Region&amp;amp;Country as Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionSales:&lt;/P&gt;&lt;P&gt;LOAD Region&amp;amp;Country as Key,Sales;&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Sales&lt;/P&gt;&lt;P&gt;Europe,Austria,2344&lt;/P&gt;&lt;P&gt;Africa,Angola,1290&lt;/P&gt;&lt;P&gt;North America,Canada,568&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionDiscount:&lt;/P&gt;&lt;P&gt;LOAD Region&amp;amp;Country as Key,Discount;&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Region,Country,Discount&lt;/P&gt;&lt;P&gt;Europe,Austria,120&lt;/P&gt;&lt;P&gt;Africa,Angola,80&lt;/P&gt;&lt;P&gt;North America,Canada,58&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Explaination:- &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. In the above example there is other possibility to use the tables like if there is same fields then concatenate the 2 tables.&lt;/P&gt;&lt;P&gt;2. You can join this two tables with one unique keys.&lt;/P&gt;&lt;P&gt;3. You can create a link table with this tables and maintain the link table.&lt;/P&gt;&lt;P&gt;4. As you see there is two common fields then you can make a composite keys and link 2 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read a document what is synthetic keys &lt;A href="https://community.qlik.com/message/451496"&gt;What is Synthetic Key?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 05:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606353#M1105050</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-06T05:41:19Z</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/606354#M1105051</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;Basically there are various way to avoid synthetic key&lt;/P&gt;&lt;P&gt;1.&amp;gt; Rename the column&lt;/P&gt;&lt;P&gt;2. If both table contain same structure then simply concatenate both tables,&lt;/P&gt;&lt;P&gt;3. If more than two fields are required to create association then create Composite Key to solve the Synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you think synthetic key make bad association then read this article.&lt;/P&gt;&lt;P&gt;For more details read article written by &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.You can also avoid synthetic key by creating key table&lt;/P&gt;&lt;P&gt;for more details read&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1303"&gt;Strategy for creating Key Tables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.By joining two tables you can also avoid synthetic key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 05:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606354#M1105051</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-04-06T05:59:27Z</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/606355#M1105053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use QUALIFY , UNQUALIFY or rename your keys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 08:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606355#M1105053</guid>
      <dc:creator>mambi</dc:creator>
      <dc:date>2014-04-06T08:32:20Z</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/606356#M1105055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use more Concatenation function in Script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 13:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606356#M1105055</guid>
      <dc:creator />
      <dc:date>2014-04-06T13:49:18Z</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/606357#M1105057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;any one of them u can use according to ur situation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.Qualify *,UnQualify&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,Use alias like Sales as Sales1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3,Comment the unwanted fileld in the table that is giving synthectic Key if u dont want &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4,Concatenate the table&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 15:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606357#M1105057</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2014-04-06T15:43:08Z</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/606358#M1105059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you most usefull!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 14:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-synthetic-key/m-p/606358#M1105059</guid>
      <dc:creator />
      <dc:date>2014-04-09T14:03:09Z</dc:date>
    </item>
  </channel>
</rss>

