<?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: Question about IntervalMatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777444#M275575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, I think I prefer removing the synthetic key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 10:21:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-24T10:21:37Z</dc:date>
    <item>
      <title>Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777440#M275571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following script to match to create a table similar to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Player&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Grade&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Stars&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Hard&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Hard&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P03&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Easy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;P04&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Very Easy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this leaves synthetic keys and I am not sure if this is 'Good' or 'Bad'.&amp;nbsp; Is there a way to create the chart above without having a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BaseGroups:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Grade, From, To&lt;/P&gt;&lt;P&gt;&amp;nbsp; Very Easy, 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Easy, 101, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Medium, 201, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hard, 301, 1000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scores:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Player, Base, Stars&lt;/P&gt;&lt;P&gt;&amp;nbsp; P01, B01, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; P02, B02, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; P03, B03, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; P04, B04, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Scores)&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Base, Value&lt;/P&gt;&lt;P&gt;&amp;nbsp; B01, 700&lt;/P&gt;&lt;P&gt;&amp;nbsp; B02, 600,&lt;/P&gt;&lt;P&gt;&amp;nbsp; B03, 150,&lt;/P&gt;&lt;P&gt;&amp;nbsp; B04, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch(Value)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; From,&lt;/P&gt;&lt;P&gt;&amp;nbsp; To &lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; BaseGroups;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 09:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777440#M275571</guid>
      <dc:creator />
      <dc:date>2015-03-24T09:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777441#M275572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Join the intervalmatch table to the base score:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (BaseGroups)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; BaseGroups; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777441#M275572</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-24T10:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777442#M275573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I quote from &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;Further, the data model contains a composite key (the FromDate and ToDate fields) which will manifest itself as a QlikView synthetic key. But have no fear. This synthetic key &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;should&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt; be there; not only is it correct, but it is also optimal given the data model. You do &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;not&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt; need to remove it."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777442#M275573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777443#M275574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I like the the synthetic key being there or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777443#M275574</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777444#M275575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, I think I prefer removing the synthetic key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777444#M275575</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777445#M275576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing the synthetic key the way you suggest will sometimes create a much worse data model. Say, for example that you have the following tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Events - A table with 1,000,000 records&lt;/LI&gt;&lt;LI&gt;Intervals - A table with 100 records&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intervalmatch will then create a table of all relevant combinations of Events and Intervals:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Intervalmatch -&amp;nbsp; A table with probably 1,000,000 records&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you join the Intervalmatch table with the Intervals table, you will explode the interval table to become as big as the events table. Count(Interval) will return the wrong answer and Count(distinct Interval) will perform slower than with the synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, why do you want to remove the synthetic key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A href="https://community.qlik.com/qlik-blogpost/3064"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777445#M275576</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-24T12:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777446#M275577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TBH I am still learning and the application i am writing is really to try and put what I am learning to a practical use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always thought synthetic keys were bad, but I was obviously wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 07:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777446#M275577</guid>
      <dc:creator />
      <dc:date>2015-03-26T07:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question about IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777447#M275578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first symptom of a bad data model is one or several synthetic keys. And so, synthetic keys get a bad reputation, when the problem really is the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bottom line is: Synthetic keys are &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/SPAN&gt; by themselves bad. But they are often a symptom of a problem in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 08:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-IntervalMatch/m-p/777447#M275578</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-26T08:36:29Z</dc:date>
    </item>
  </channel>
</rss>

