<?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: Synthetic keys &amp; Best practice in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889367#M309888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this discussion: &lt;A href="https://community.qlik.com/thread/10279"&gt;Should We Stop Worrying and Love the Synthetic Key?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this blog post: &lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="3064" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 07:07:45 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-06-15T07:07:45Z</dc:date>
    <item>
      <title>Synthetic keys &amp; Best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889366#M309887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;BR /&gt;Yet another thread about synthetic keys. I could not find my answer in another thread, so here goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains the stock information of our products. These can be either used or non-used. I want to display the aggregated used and non-used stocks per product in my Qlikview file. I decided to do the aggregation in the script, causing both the raw stock table and the aggregated stock table to be in the data model. Qlikview then creates a synthetic key between these tables. Now my question is: Which of the following is usually best to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Should I not create the aggregated table at all, and do the aggregation in the chart object using set analysis? This might make the report to become slower, right?&lt;/P&gt;&lt;P&gt;- Should I create a unique key with the productID and the used-property and put them in a link table between the raw and the aggregated stock tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are there better suggestions? Any document or information on this subject would be very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 06:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889366#M309887</guid>
      <dc:creator />
      <dc:date>2015-06-15T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys &amp; Best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889367#M309888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this discussion: &lt;A href="https://community.qlik.com/thread/10279"&gt;Should We Stop Worrying and Love the Synthetic Key?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this blog post: &lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="3064" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 07:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889367#M309888</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-15T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys &amp; Best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889368#M309889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I have read both these articles in other threads, and I understand the concept and that sometimes Synthetic keys are not a problem. I am just hoping that a more experienced Qlikview developer than myself can advice me on whether this would be such a case in which the synthetic key is the result of &lt;EM&gt;'a poorly designed data model' &lt;/EM&gt; or if it suits its purpose here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 07:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889368#M309889</guid>
      <dc:creator />
      <dc:date>2015-06-15T07:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys &amp; Best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889369#M309890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Which of the following is usually best to do&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, "don't fix it if it ain't broken" is usually a good thing to do. Do you actually have performance issues if you do the aggregation calculations in chart expressions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option could be to concatenate the aggregated table with the non-aggregated data. See this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Fact Table with Mixed Granularity&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 07:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889369#M309890</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-15T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys &amp; Best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889370#M309891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for this article. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 07:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889370#M309891</guid>
      <dc:creator />
      <dc:date>2015-06-15T07:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic keys &amp; Best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889371#M309892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Floorian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to do all possible aggression calculations/operations at script level only. Aggressions at&amp;nbsp; front level/chart object is not good practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use link-tables or do aggressions separately for used items &amp;amp; unused items. And then concatenate both results in one table (make sure tables that will be concatenated should have same structure/fields/columns).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In front-level chart object you can directly display those values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&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;Prashant P Baste&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 08:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Synthetic-keys-Best-practice/m-p/889371#M309892</guid>
      <dc:creator>prashantbaste</dc:creator>
      <dc:date>2015-06-15T08:35:13Z</dc:date>
    </item>
  </channel>
</rss>

