<?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 Datamodel optimization - IntervalMatch from to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Datamodel-optimization-IntervalMatch-from-to/m-p/662193#M241316</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 would like to know if there is a way to optimize the following datamodel, which contains a synthetic key.&lt;/P&gt;&lt;P&gt;The best practise of qlikview tell us to avoid synthetic keys and eliminate them if they appears in our datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my use case i do not know if there is the need and if it is possible to avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dummy application the 3 important fields are CODE, FROM and TO.&lt;/P&gt;&lt;P&gt;And i am using the interval function to check if a selected date is between the FROM and TO range.&lt;/P&gt;&lt;P&gt;Here the snippet of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;IntervalMatch (DateList) load From ,To Resident DateLink;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a DateLink table which contains the Key and the From and To fields of each table involved in my model and dropped then this fields from the corresponding tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result, my model looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60441" alt="datamodel.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60441_datamodel.png" style="width: 620px; height: 334px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for my curiosity is there a way to avoid the synthetic key in my usecase scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 19:08:43 GMT</pubDate>
    <dc:creator>pamaxeed</dc:creator>
    <dc:date>2014-06-11T19:08:43Z</dc:date>
    <item>
      <title>Datamodel optimization - IntervalMatch from to</title>
      <link>https://community.qlik.com/t5/QlikView/Datamodel-optimization-IntervalMatch-from-to/m-p/662193#M241316</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 would like to know if there is a way to optimize the following datamodel, which contains a synthetic key.&lt;/P&gt;&lt;P&gt;The best practise of qlikview tell us to avoid synthetic keys and eliminate them if they appears in our datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my use case i do not know if there is the need and if it is possible to avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dummy application the 3 important fields are CODE, FROM and TO.&lt;/P&gt;&lt;P&gt;And i am using the interval function to check if a selected date is between the FROM and TO range.&lt;/P&gt;&lt;P&gt;Here the snippet of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;IntervalMatch (DateList) load From ,To Resident DateLink;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a DateLink table which contains the Key and the From and To fields of each table involved in my model and dropped then this fields from the corresponding tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result, my model looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60441" alt="datamodel.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60441_datamodel.png" style="width: 620px; height: 334px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for my curiosity is there a way to avoid the synthetic key in my usecase scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 19:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datamodel-optimization-IntervalMatch-from-to/m-p/662193#M241316</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2014-06-11T19:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Datamodel optimization - IntervalMatch from to</title>
      <link>https://community.qlik.com/t5/QlikView/Datamodel-optimization-IntervalMatch-from-to/m-p/662194#M241317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post &lt;A class="unlinked" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synthetic keys are expected with Interval Match&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 19:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datamodel-optimization-IntervalMatch-from-to/m-p/662194#M241317</guid>
      <dc:creator />
      <dc:date>2014-06-11T19:12:22Z</dc:date>
    </item>
  </channel>
</rss>

