<?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 modelling avoiding synthetic keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147633#M375384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your request is solved, please close this thread by flagging answers as helpful and / or correct (or setting the thread to assumed answered)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just in case you haven't already seen this blog post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3064"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 May 2016 22:46:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-14T22:46:02Z</dc:date>
    <item>
      <title>Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147628#M375379</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;I am used to database programs like MySQL now I am into Qlikview and learned about synthetic keys.&lt;/P&gt;&lt;P&gt;Is it always bad behavior if you have them? I know the standard things like renaming, qualify using aggregate keys.&lt;/P&gt;&lt;P&gt;I try to avoid synthetic keys. Synthetic keys get created when more then 1 field matches other tables.&lt;/P&gt;&lt;P&gt;Since Qlikview wants to join based on equal field names like shopID, retourNr and Count. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count must not joined at all I could qualify this one. But how to avoid synthetic key of ShopID. If I qualify ShopID as well I loose my link with master data table. People must be able to select data based on ShopID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data model is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BRS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RetourNr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type ('def', 'mas' or 'inc')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShopID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;ShopScanned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RetourNr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShopID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As masterdata I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShopID, with detailed info of the shop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So BRS --&amp;gt; ShopScanned -&amp;gt; Shop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution is to create a field ScanShopID in master data table Shop and use this in ShopScanned as well this creates a loop but in practice not since only records with type 'mas' are using the ScanShopID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 15:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147628#M375379</guid>
      <dc:creator />
      <dc:date>2016-05-14T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147629#M375380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhon , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your datamodel you need the combination of those two fields(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RetourNr,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ShopID&lt;/SPAN&gt;&lt;/SPAN&gt;) to create an a true ID field right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the problem when you try to concatenate them, hope can help&amp;nbsp; you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 16:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147629#M375380</guid>
      <dc:creator />
      <dc:date>2016-05-14T16:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147630#M375381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could either concatenate or join your &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;BRS&lt;/EM&gt; and &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;ShopScanned&lt;/EM&gt; &lt;/SPAN&gt;tables.&amp;nbsp; I usually prefer concatenate but without knowing your data I cannot suggest definitively, but I reckon concatenate would be the way to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know your full data model, but this will go towards creating a Star Schema which is the most recommended model to go for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst synthetic keys are often bad, they are not always bad.&amp;nbsp; The one created by the IntervalMatch() is one of the few good ones.&amp;nbsp; But in general synthetic keys are a sign of either sloppy modelling of sloppy scripting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 16:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147630#M375381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-14T16:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147631#M375382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I played with it for hours changing it to a join.&lt;/P&gt;&lt;P&gt;But one table blows up everything and script not loaded.&lt;/P&gt;&lt;P&gt;All fields are different and retournr is the key item. Strange I agree.&lt;/P&gt;&lt;P&gt;Is there a way to do a join after loading the data and combine it in a new table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 18:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147631#M375382</guid>
      <dc:creator />
      <dc:date>2016-05-14T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147632#M375383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved it by using store and concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 19:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147632#M375383</guid>
      <dc:creator />
      <dc:date>2016-05-14T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147633#M375384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your request is solved, please close this thread by flagging answers as helpful and / or correct (or setting the thread to assumed answered)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just in case you haven't already seen this blog post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3064"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 22:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147633#M375384</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-14T22:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data modelling avoiding synthetic keys</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147634#M375385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is useful to you&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/" title="http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/"&gt;http://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 05:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modelling-avoiding-synthetic-keys/m-p/1147634#M375385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-15T05:32:40Z</dc:date>
    </item>
  </channel>
</rss>

