<?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 IntervalMatch vs. Extended IntervalMatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182036#M47843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my view, Extended Interval Match is used when you have some more keys (apart from just StartDate/EndDate ) to be matched. So, it does not reduce the number of joins as understood by you.&lt;/P&gt;&lt;P&gt;In the current example, you do not need Extended syntax, as you do not have any extra keys to be matched to determine the correct season for a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 15:48:32 GMT</pubDate>
    <dc:creator>vidyut</dc:creator>
    <dc:date>2010-03-16T15:48:32Z</dc:date>
    <item>
      <title>IntervalMatch vs. Extended IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182035#M47842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like read time-dependent masterdata into my fact table, in order to solve a slowly-changing dimension problem. I can use the (standard) IntervalMatch functionality to achieve this. However, it takes me 2 joins. I've read in the help about the extended intervalmatch functionality. But it doesn't deliver the expected results.&lt;/P&gt;&lt;P&gt;To demonstrate, I've created a simple example. In this example there is a masterdata table (Seasons) and a fact table (Sales). I want to add the right season to my sales table. (This is not strictly a changing dimension, but it demonstrates the functionality.)&lt;/P&gt;&lt;P&gt;The source tables:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SET DateFormat='D-M-YYYY';&lt;BR /&gt;&lt;BR /&gt;Seasons:&lt;BR /&gt;Load&lt;BR /&gt; Season,&lt;BR /&gt; Date#(StartDate,'D-M') AS StartDate,&lt;BR /&gt; Date#(EndDate,'D-M') AS EndDate;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Season, StartDate, EndDate&lt;BR /&gt; Winter, 1-1, 29-02&lt;BR /&gt; Spring, 1-3, 31-5&lt;BR /&gt; Summer, 1-6, 31-8&lt;BR /&gt; Automn, 1-9, 20-11 Winter, 1-12, 31-12];&lt;BR /&gt;Sales:&lt;BR /&gt;Load *,&lt;BR /&gt; MakeDate(year(date(0)),Month(SalesDate),Day(SalesDate)) AS MatchDate;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Product, SalesDate, Amount&lt;BR /&gt; Gloves, 15-12-2009, 100&lt;BR /&gt; Shawl, 25-01-2010, 50&lt;BR /&gt; Sunglasses, 14-07-2009, 150];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;With standard IntervalMatch functionality, I get the expected results. However, I need 2 joins:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LEFT JOIN (Seasons)&lt;BR /&gt;IntervalMatch (MatchDate) LOAD StartDate, EndDate RESIDENT Seasons;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (Sales) LOAD MatchDate, Season RESIDENT Seasons;&lt;BR /&gt;DROP TABLE Seasons;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;With extended IntervalMatch functionality, I would expect the same results, but with only 1 join.. However, I don't get any match anymore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LEFT JOIN (Sales)&lt;BR /&gt;IntervalMatch (SalesDate, Season) LOAD StartDate, EndDate, Season RESIDENT Seasons;&lt;BR /&gt;DROP TABLE Seasons;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any thoughts on this are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 15:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182035#M47842</guid>
      <dc:creator />
      <dc:date>2010-03-16T15:38:11Z</dc:date>
    </item>
    <item>
      <title>IntervalMatch vs. Extended IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182036#M47843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my view, Extended Interval Match is used when you have some more keys (apart from just StartDate/EndDate ) to be matched. So, it does not reduce the number of joins as understood by you.&lt;/P&gt;&lt;P&gt;In the current example, you do not need Extended syntax, as you do not have any extra keys to be matched to determine the correct season for a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 15:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182036#M47843</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2010-03-16T15:48:32Z</dc:date>
    </item>
    <item>
      <title>IntervalMatch vs. Extended IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182037#M47844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, your answer makes me understand the purpose of the extended intervalmatch functionality.&lt;/P&gt;&lt;P&gt;Still, I would like to know if there are better ways to read attributes of slowly changing dimensions to a fact table. I don't like having 2 joins, since it makes the code difficult to read. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 16:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182037#M47844</guid>
      <dc:creator />
      <dc:date>2010-03-16T16:01:52Z</dc:date>
    </item>
    <item>
      <title>IntervalMatch vs. Extended IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182038#M47845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those joins are needed to avoid the synthetic keys, so no way to avoid these without making the model look messier &lt;IMG alt="Cool" src="http://community.qlik.com/emoticons/emotion-11.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 16:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-vs-Extended-IntervalMatch/m-p/182038#M47845</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2010-03-16T16:23:16Z</dc:date>
    </item>
  </channel>
</rss>

