<?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: Doubt in Interval Match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213459#M67184</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you mean what happens when the start and end date for the range are the same, if there is one record with the same date, will match in the range. Check the following script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Facts:
LOAD * INLINE [
Code, Date 
AAA, 01/01/2011 1:20:00
BBB, 01/01/2011 1:21:00
CCC, 01/01/2011 1:22:00
]; 

Intervals:
LOAD * INLINE [
Start, End, Name
01/01/2011 1:20:00, 01/01/2011 1:20:00, A
01/01/2011 1:21:00, 01/01/2011 1:21:00, B
]; 

FactsWithIntervals:
INTERVALMATCH (Date) 
LOAD Start, End
RESIDENT Intervals
;
JOIN LOAD * 
RESIDENT Intervals; 

DROP TABLE Intervals; 

OnlyOneRecordPerInterval:
RIGHT KEEP 
LOAD Code, Date
RESIDENT Facts;

JOIN LOAD *
RESIDENT FactsWithIntervals; 

DROP TABLE Facts;
DROP TABLE FactsWithIntervals;&lt;/LI-CODE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 10:05:10 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2020-09-08T10:05:10Z</dc:date>
    <item>
      <title>Doubt in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213457#M67182</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 have some queries regarding the Interval Match function. I want to know what will be the bahaviour of interval match function if the data is as shown below. I am using the code which is given below and all those rows which is having data as shown below are not getting displayed. So would like to know about the behaviour of this interval match function.&lt;/P&gt;&lt;P&gt;Example data:&lt;/P&gt;&lt;P&gt;StartDate: 31/03/2011 15:07:00&lt;/P&gt;&lt;P&gt;EndDate: 31/03/2011 15:07:00&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; IntervalMatch(date)&lt;BR /&gt;LOAD ImplStart, ImplEnd RESIDENT Data;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 13:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213457#M67182</guid>
      <dc:creator />
      <dc:date>2011-04-13T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Doubt in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213458#M67183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If I have such a problem I would use also the date funtction.&lt;/P&gt;&lt;P&gt;In this case you know for sure that it wil be the right date.&lt;/P&gt;&lt;P&gt;So something like&lt;/P&gt;&lt;P&gt;IntervalMatch(DATE(date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;If not please upload an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 13:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213458#M67183</guid>
      <dc:creator />
      <dc:date>2011-04-13T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213459#M67184</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you mean what happens when the start and end date for the range are the same, if there is one record with the same date, will match in the range. Check the following script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Facts:
LOAD * INLINE [
Code, Date 
AAA, 01/01/2011 1:20:00
BBB, 01/01/2011 1:21:00
CCC, 01/01/2011 1:22:00
]; 

Intervals:
LOAD * INLINE [
Start, End, Name
01/01/2011 1:20:00, 01/01/2011 1:20:00, A
01/01/2011 1:21:00, 01/01/2011 1:21:00, B
]; 

FactsWithIntervals:
INTERVALMATCH (Date) 
LOAD Start, End
RESIDENT Intervals
;
JOIN LOAD * 
RESIDENT Intervals; 

DROP TABLE Intervals; 

OnlyOneRecordPerInterval:
RIGHT KEEP 
LOAD Code, Date
RESIDENT Facts;

JOIN LOAD *
RESIDENT FactsWithIntervals; 

DROP TABLE Facts;
DROP TABLE FactsWithIntervals;&lt;/LI-CODE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 10:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-Interval-Match/m-p/213459#M67184</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2020-09-08T10:05:10Z</dc:date>
    </item>
  </channel>
</rss>

