<?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: Link Table help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-Table-help/m-p/920980#M319086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicates in itself is less worrying in QlikView in a single field because it internally/automatically do a de-duplication that is highly efficient. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a concatenated keyfield it is much more problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the AutoNumber() function to make the key as storage-efficient as possible and make sure that the EventDate is really just a date and does not contain any time in it by for instance doing a Floor(EventDate) and also turns into an integer. This will make sure that you get the best distinct ratio for the EventDate ( unique values / all values ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 12:34:26 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-08-12T12:34:26Z</dc:date>
    <item>
      <title>Link Table help</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-help/m-p/920979#M319085</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 read through the existing posts and couldnt find my solution so I thought I would ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a link table as I have a data model with 10+ tables. I started by creating my own key by concatenating some fields together in each table and pushed all the "keys" from each table into the Link Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempLink:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (FOCUS_ID_NO &amp;amp; '_' &amp;amp; CodeBlueLocation &amp;amp; '_' &amp;amp; CODE_DATE) as %KeyCodeBlue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,FOCUS_ID_NO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,CodeBlueLocation as Location&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,CODE_DATE as EventDate&lt;/P&gt;&lt;P&gt;Resident TempCodeBlue;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(TempLink)&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (INCIDENTID &amp;amp; '_' &amp;amp; [Event Date] &amp;amp; '_' &amp;amp; [Location where Event Occurred]) as %KeyRLIncident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,INCIDENTID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Event Date] as EventDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Location where Event Occurred] as Location&lt;/P&gt;&lt;P&gt;Resident TempIncident;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(TempLink)&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (AbstractID &amp;amp; '_' &amp;amp; Account &amp;amp; '_' &amp;amp; LocationName &amp;amp; '_' &amp;amp; EventStartDate) as %KeyMediLOS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,AbstractID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Account&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,LocationName as Location&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,EventStartDate as EventDate&lt;/P&gt;&lt;P&gt;Resident TempMediLocations;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have realized though that I am getting a lot of dupes for EventDate and I really dont want to keep loading the same date into that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to make this link table work more efficiently? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-help/m-p/920979#M319085</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2015-08-12T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table help</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-help/m-p/920980#M319086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicates in itself is less worrying in QlikView in a single field because it internally/automatically do a de-duplication that is highly efficient. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a concatenated keyfield it is much more problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the AutoNumber() function to make the key as storage-efficient as possible and make sure that the EventDate is really just a date and does not contain any time in it by for instance doing a Floor(EventDate) and also turns into an integer. This will make sure that you get the best distinct ratio for the EventDate ( unique values / all values ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-help/m-p/920980#M319086</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-12T12:34:26Z</dc:date>
    </item>
  </channel>
</rss>

