<?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: When would you use Interval Match (extended) version over the normal Interval Match? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074448#M643144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, maybe not enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know what to add to the examples that are contained in the help (there are examples for both versions when looking at the IntervalMatch() help page):&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/IntervalMatch.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/IntervalMatch.htm"&gt;QlikView ‒ IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 19:50:37 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-08T19:50:37Z</dc:date>
    <item>
      <title>When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074445#M643141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QlikView and I was reading about Interval Match extended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me when would you use Interval Match (extended) version over the normal Interval Match?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They don't look too different to each other so I would like to know when to use each one!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already read the Help and Reference Manuel but I still don't understand. Can anybody please simplify with an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 19:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074445#M643141</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-02-08T19:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074446#M643142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The extended version is used when you need an additional key field to distinguish between different ranges that match your numeric value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 19:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074446#M643142</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T19:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074447#M643143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is intervalmatch...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hair_Disaster:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min_Percentage, max_Percentage, Kerotine_Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40, 60, Low&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 61, 70, Medium&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 71, 80, Normal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 81, 90, High&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 92, 100, Above All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -10, 0, Negative&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hair_Shine:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percentage, Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 45, Anand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55, Karim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 65, Islam &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70, Ancy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 92, Priya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110, Manish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500, Tarjani&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join &lt;/P&gt;&lt;P&gt;IntervalMatch(Percentage) Load&lt;/P&gt;&lt;P&gt;Min_Percentage, max_Percentage&lt;/P&gt;&lt;P&gt;Resident Hair_Disaster;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Hair_Shine)&lt;/P&gt;&lt;P&gt;Load * Resident Hair_Disaster;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Hair_Disaster;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is extended intervalmatch example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(OrderDate,'DD-MM-YYYY')) as OrderDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Item, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Quantity &lt;/P&gt;&lt;P&gt;INLINE &lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; OrderDate, Item, Quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01-01-2013, X0001, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp; 31-12-2013, X0001, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01-02-2014, X0001, 15&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(StartDate,'DD-MM-YYYY')) as StartDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(EndDate,'DD-MM-YYYY')) as EndDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Item, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Price &lt;/P&gt;&lt;P&gt;INLINE &lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; StartDate, EndDate, Item, Price&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01-01-2013, 31-12-2013, X0001, 3.45&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01-01-2014, 31-12-2014, X0001, 3.55&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;IntervalMatch(OrderDate, Item)&lt;/P&gt;&lt;P&gt;LOAD DISTINCT StartDate, EndDate, Item Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Orders)&lt;/P&gt;&lt;P&gt;LOAD * Resident Temp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehl has already explained the difference..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 19:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074447#M643143</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-02-08T19:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074448#M643144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, maybe not enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know what to add to the examples that are contained in the help (there are examples for both versions when looking at the IntervalMatch() help page):&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/IntervalMatch.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/IntervalMatch.htm"&gt;QlikView ‒ IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 19:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074448#M643144</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T19:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074449#M643145</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;Thank you for the replies. I am still having trouble understanding why I need additional key field to distinguish between different ranges that match your numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would this be the case? Sorry it's not making sense to me yet!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 10:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074449#M643145</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-02-12T10:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074450#M643146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked into the example I linked into the HELP pages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example demonstrates why you would need a key for example if you have multiple production lines with events and time intervals you need to reference to specific lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074450#M643146</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-12T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074451#M643147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple case would be when you try to match different intervals for specific departments to an employee that has a timestamp and works in a specific department at that moment. Department would be an additional "dimension"-like value that should be taken into account when trying to match timestamps to intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The explanation for &lt;EM&gt;IntervalMatch (Extended Syntax)&lt;/EM&gt; in QV Help is really good, but the example is a bit thin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074451#M643147</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-12T11:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074452#M643149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl yes your earlier linked helped as well as Manish's example. I am having more difficulty simplifying why key field has to be used to distinguish different ranges. What would happen if this wasn't the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if it sounds like a silly question, I am trying to really understand the importance of the key field &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074452#M643149</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-02-12T11:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074453#M643152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would match a numerical value to &lt;EM&gt;all&lt;/EM&gt; intervals, regardless of the keyfield value that should match 1:1. You get an overly complex synthetic key and too many matches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074453#M643152</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-12T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074454#M643155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most common application is to match a slowly changing dimension (SCD) which contains start and end dates, a value, and the item to which this dimension value applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, consider a set of sales people that are grouped into geographical areas, which might change from time to time, and we want to report the sales by area with the sales assigned to the correct area based on the SCD. The Sales table contains a transaction date, salesperson ID, sales amount (among others). The SCD in the Intervals table would contain: sales person ID, start date, end date and area code. so we would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left Join (Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntervalMatch(SalesDate, SalesPersonID)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // these are the fields from Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD StartDate, EndDate, SalesPersonID&amp;nbsp;&amp;nbsp; // these are from Intervals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Intervals;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the sales area (in Intervals) will be correctly associated* with the sales transactions (in Sales)according to the area to which the sales person belonged in the sales date range between StartDate and EndDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*via the composite key StartDate, EndDate, SalesPerson between the Sales table and the Intervals table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074454#M643155</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-12T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: When would you use Interval Match (extended) version over the normal Interval Match?</title>
      <link>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074455#M643157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;John Blomqvist wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi Swuehl yes your earlier linked helped as well as Manish's example. I am having more difficulty simplifying why key field has to be used to distinguish different ranges. What would happen if this wasn't the case?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Sorry if it sounds like a silly question, I am trying to really understand the importance of the key field &lt;SPAN class="emoticon-inline emoticon_happy" style="width: 16px; height: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The really nice feature using QV is that's really easy to play around with samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just copy the code from the HELP page and run the script, once with additional key and once without.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe there is nothing better than to actually see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-would-you-use-Interval-Match-extended-version-over-the/m-p/1074455#M643157</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-12T11:36:15Z</dc:date>
    </item>
  </channel>
</rss>

