<?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: IntervalMatch function issues with date range and additional field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-function-issues-with-date-range-and-additional/m-p/1780426#M455120</link>
    <description>&lt;P&gt;Have resolved the issue, dates were back to front to on the End range sort and match wasn't working.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 07:54:32 GMT</pubDate>
    <dc:creator>Qbo</dc:creator>
    <dc:date>2021-02-05T07:54:32Z</dc:date>
    <item>
      <title>IntervalMatch function issues with date range and additional field</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-function-issues-with-date-range-and-additional/m-p/1780268#M455114</link>
      <description>&lt;P&gt;Having issues with IntervalMatch() function. Just want to tie two tables together by a common ID and date range. Have tried it various different ways and just can't seem to get the solution. Any help would be greatly appreciated. Here is where I've gotten to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;A:
LOAD Distinct
	 booking_id, 
     id, 
     TDate, 		//floored date field 
     level
FROM
[..\QVDs\A.qvd]
(qvd);

B:
LOAD Distinct
	 id,
	 cBooking, 
     cdate as Start, 	//floored date field
     NEXT_cdate as End 	//floored date field
FROM
[..\QVDs\B.qvd]
(qvd);

INNER JOIN
IntervalMatch(TDate,id) 
LOAD Distinct 
	 Start,
	 End,
	 id
Resident B;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried to &lt;SPAN&gt;anonymize it as much as possible so hopefully it is still clear for you guys. Basically I want to join the two tables on the id and Start/End dates so I can get the average level for that id within that range if that makes sense. Be gentle with me if I have posted in the wrong section or if you feel this has been beaten to death as I have looked over numerous posts and cannot get this to work for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This last solution I have arrived at is pulled directly from Qlik and is basically copied verbatim:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm?_ga=2.241546050.1998698429.1612187344-2041915934.1533733280" target="_self"&gt;From Here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-function-issues-with-date-range-and-additional/m-p/1780268#M455114</guid>
      <dc:creator>Qbo</dc:creator>
      <dc:date>2024-11-15T23:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch function issues with date range and additional field</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-function-issues-with-date-range-and-additional/m-p/1780426#M455120</link>
      <description>&lt;P&gt;Have resolved the issue, dates were back to front to on the End range sort and match wasn't working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 07:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-function-issues-with-date-range-and-additional/m-p/1780426#M455120</guid>
      <dc:creator>Qbo</dc:creator>
      <dc:date>2021-02-05T07:54:32Z</dc:date>
    </item>
  </channel>
</rss>

