<?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 remove synthetic keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319750#M117841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the NamedKey is not required as the synthetic key does the job, however I'm just trying an exercise of understanding how I could remove the synthetic key by creating my own key. In my example, I'm struggling to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of the NamedAccountList table is perfectly exampled in my data. RepA has only sold to Customer1, however he looks after both Customer1 and Customer2. I would want to report both customers under his ownership which would not be possible if I just used the Sales table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please be aware that the NamedAccountsList info could not also be stored in the Customer table as this is not one-to-one i.e. Two reps could look after one customer hence the NamedAccountsList table will store two entries for the same customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps understand my data structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2011 10:43:16 GMT</pubDate>
    <dc:creator>derekjones</dc:creator>
    <dc:date>2011-05-23T10:43:16Z</dc:date>
    <item>
      <title>How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319747#M117838</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;&lt;/P&gt;&lt;P&gt;I've read the disussions around synthetic keys being acceptable (or not) and in my example I'm pretty comfortable keeping the one it creates, however just for my own understanding I have no idea on how to remove it if it were necessary to remove synthetic keys. Basically I have 4 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales Table = Contains sales data by customer and employee.&lt;/P&gt;&lt;P&gt;Named Account List = Contains which employee owns which customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have an Employee Table to store all employee info and a Customer Table which contains all Customer Info, that way the Sales and named Account tables just work off ID's (Is this the right way to a qlikview database design?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview makes the synthetic joins between Customer_ID and Employee_ID as expected. However when I do try and remove the synthetic key (by creating my own NamedKey) the synthetic key still exists becuase the Employee Info and Customer Info are in seperate tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just for my own better understanding of how to structure the tables and prevent synthetic keys, could anyone explain how I could do this in the attached example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thanks in advance for your guidance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 10:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319747#M117838</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T10:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319748#M117839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The purpose of the "NamedAccountList" and consequently the creation of "NamedKey" is not quite clear.&lt;/P&gt;&lt;P&gt;The application should also run without.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you may need to rename fields in one of your tables in order to prevent the automatic linking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 10:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319748#M117839</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-05-23T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319749#M117840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, here's the Excel file with the table data I've used, if required for testing a different type of load...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 10:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319749#M117840</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319750#M117841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the NamedKey is not required as the synthetic key does the job, however I'm just trying an exercise of understanding how I could remove the synthetic key by creating my own key. In my example, I'm struggling to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of the NamedAccountList table is perfectly exampled in my data. RepA has only sold to Customer1, however he looks after both Customer1 and Customer2. I would want to report both customers under his ownership which would not be possible if I just used the Sales table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please be aware that the NamedAccountsList info could not also be stored in the Customer table as this is not one-to-one i.e. Two reps could look after one customer hence the NamedAccountsList table will store two entries for the same customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps understand my data structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 10:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319750#M117841</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319751#M117842</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 10:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319751#M117842</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319752#M117843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice try, but you'll see in the attached (which is your qvw with Rep A selected and object TEST_TABLE added), by not joining the customer on the sales table, when I try and report Qty Sold for Rep A it puts Qty = 2 against both Customers, when if you look at the sales table it only sold against Customer1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it's worth noting that potentially there could be sales by customers who are not named to a rep, therefore the customer info needs to be also linked to teh sales table as just linking by NamedAccountList will only give back Customer data for any named accounts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 11:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319752#M117843</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T11:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319753#M117844</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do changes in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Goto Sales Table, replace the Employee_id with Customer_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 11:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319753#M117844</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319754#M117845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting closer, that worked for this particular example but potentially there could also be reps who have sold in sales table but are not named to any accounts e.g. Historic reps that have left the company who are now not named to any accounts but we still need to report their sales. I need to include EMPLOYEE_NAME in the sales table, but using a different name (so tables do not link) means I do not have a single Employee Name field to use for selections and reporting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 12:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319754#M117845</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T12:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319755#M117846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a more complete example of my data, in the attached I've added a record for a historic rep example (RepB). I've also added another existing named rep to Customer1 as potentially there could be 2 reps named to the same account. The example attached reports correctlly i.e. RepA sold 2 into Customer 1, RepB sold 5 and rep C sold 1. Selecting RepA gives a list of Customer1 and Customer2 sales (even though Customer2 did not have an entry in Sales table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example with a Synthetic key works perfectly, I'm just trying to ascertain how you can replicate the same result without creating a synthetic key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 12:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319755#M117846</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319756#M117847</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes you can give a different name, but the name should be given such that it is recognised easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 12:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319756#M117847</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319757#M117848</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;So in this example are we saying that without using a sythetic key there is no way to replicate the same structure? i.e. You have to use two fields for Employee name and know which one you are using for which report and not able to share the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this therefore an example of where a synthetic key should be used as you cannot get the same result without one? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 12:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319757#M117848</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319758#M117849</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually where ever you require 2 fields to be joined, there will be a synthetic key. (This is what i have experienced till now).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 12:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319758#M117849</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-23T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319759#M117850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I can't understand, why is there a resistance to synthetic keys when there appears to be no workaround in certain scenarios. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could get the same result without a synthetic key I would half understand to create the joins yourself, but in the example I have provided I have no option but to create a synthetic key if I want to share the employee name field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 13:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-synthetic-keys/m-p/319759#M117850</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2011-05-23T13:40:51Z</dc:date>
    </item>
  </channel>
</rss>

