<?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: avoiding Synthetic Keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510051#M436584</link>
    <description>Its true what &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412"&gt;@dplr-rn&lt;/a&gt; writes. Synthetic keys aren't necessary bad, but I will argue that it is a good rule of thumbs to eliminate all synthetic keys.&lt;BR /&gt;&lt;BR /&gt;When you have become an QlikView Qlik Sense expert you will find a few scenarios where synthetic keys could be the preferred solution, but for now I would recommend you to clean up all of them.</description>
    <pubDate>Tue, 20 Nov 2018 21:55:48 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2018-11-20T21:55:48Z</dc:date>
    <item>
      <title>avoiding Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1509992#M436580</link>
      <description>&lt;P&gt;Hi I have a few tabels that I want to compare and make calculations on based on dates.&lt;/P&gt;&lt;P&gt;The problem is that these dates are not comparable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to do a linkTable with a master Calendar which works if multiple dates&amp;nbsp;are in the same table. But when they are in different tables it creates loops which corrupts the data more that a synthetic key.&lt;/P&gt;&lt;P&gt;On the right I also have a "correct" synthetic key in order to use interval match.&lt;/P&gt;&lt;P&gt;What alternatives are there if&amp;nbsp; I want to be able to compare the data of different tables on the same timeaxis? I attach the table view of my data.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Synthetic.JPG" style="width: 990px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/681i1DC0E878D19E4EDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Synthetic.JPG" alt="Synthetic.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1509992#M436580</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2018-11-20T19:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: avoiding Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510000#M436582</link>
      <description>Create a concatenated field of the two.&lt;BR /&gt;&lt;BR /&gt;Hash256(Projektnr,DatumYM) as %projektdatum&lt;BR /&gt;&lt;BR /&gt;Replace Projektnr and DatumYM with this new field in all but one table.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510000#M436582</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2018-11-20T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: avoiding Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510041#M436583</link>
      <description>&lt;P&gt;&lt;EM&gt;Caveat to below points - i try to avoid synthetic keys whenever possible&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Synthetics keys are a big discussion point in qlik community.&lt;BR /&gt;Many including the esteemed henric argue its not a big deal as far as performance is concerned. and that the bigger question is the datamodel.&lt;BR /&gt;In many cases synthetic key is a symptom of data model mistake.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Should-We-Stop-Worrying-and-Love-the-Synthetic-Key/m-p/213649" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Should-We-Stop-Worrying-and-Love-the-Synthetic-Key/m-p/213649&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Synthetic-Keys/ba-p/1472634" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Synthetic-Keys/ba-p/1472634&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would say read the posts and check the data model in detail.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510041#M436583</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-20T21:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: avoiding Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510051#M436584</link>
      <description>Its true what &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412"&gt;@dplr-rn&lt;/a&gt; writes. Synthetic keys aren't necessary bad, but I will argue that it is a good rule of thumbs to eliminate all synthetic keys.&lt;BR /&gt;&lt;BR /&gt;When you have become an QlikView Qlik Sense expert you will find a few scenarios where synthetic keys could be the preferred solution, but for now I would recommend you to clean up all of them.</description>
      <pubDate>Tue, 20 Nov 2018 21:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510051#M436584</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2018-11-20T21:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: avoiding Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510053#M436585</link>
      <description>Agreed. Hence the caveat at the start &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 20 Nov 2018 22:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1510053#M436585</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-20T22:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: avoiding Synthetic Keys</title>
      <link>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1512818#M436712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to remove the synthetic keys while still using my lookup table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;I use a Left Join to avoid getting new records as Henric writes about (and remove the synthetic key).&lt;/P&gt;&lt;P&gt;But I also want to use Left Join on "ProjektBenämning" and "ProjektKategori " in order to get one table with all the data I need. However putting Left join between the tables result in an error saying that QV can't find the table "Projektkategori".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ProjektBenämning:&lt;BR /&gt;LOAD [FCHACC_Konteringsbegrepp] as Projektnr, &lt;BR /&gt; [FCHACC_SpärratKonteringsbegrepp] as ProjektSpärr,&lt;BR /&gt; [FCHACC_Beskrivning] as ProjektNamn,&lt;BR /&gt; [FCHACC_Konteringsbegrepp] &amp;amp; ' ' &amp;amp; [FCHACC_Beskrivning] as ProjektNrNamn&lt;BR /&gt;FROM [N:\CSVfiler\Konteringsbegrepp_BYG.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;WHERE [FCHACC_Konteringsdimension]= 4;&lt;BR /&gt;&lt;BR /&gt;[Projektkategori]:&lt;BR /&gt;LOAD [ProjektHuvudGrupp] As ProjektHuvudGrupp,&lt;BR /&gt; [Projektgrupp] As Projektgrupp,&lt;BR /&gt; [Från] As fromProject,&lt;BR /&gt; [Till] As toProject,&lt;BR /&gt; [Ordning] As Projektordning&lt;BR /&gt; FROM [N:\Byggsystem\QVS uppdelning.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Projektkategori);&lt;BR /&gt;&lt;BR /&gt;IntervalMatch ( Projektnr ) &lt;BR /&gt;Left Join ([Projektkategori])&lt;BR /&gt;LOAD fromProject, toProject&lt;BR /&gt;Resident [Projektkategori];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//Drop Table [Projektkategori]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 13:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avoiding-Synthetic-Keys/m-p/1512818#M436712</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2018-11-27T13:50:37Z</dc:date>
    </item>
  </channel>
</rss>

