<?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 not getting some values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747228#M590634</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112480"&gt;@Vinerc&lt;/a&gt;&amp;nbsp; try rounding of your timestamp to correct representation of time&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
[BI]:
LOAD Car,
timestamp(floor(StartTime,1/24/60)) as StartTime,
timestamp(floor(EndTime,1/24/60)) as EndTime
FROM
[\Travels.xlsx]
(ooxml, embedded labels, table is Sheet1);

[PRODATABASE]:
LOAD Car,
timestamp(floor(Time,1/24/60)) as Time
FROM
[\Passengers.xlsx]
(ooxml, embedded labels, table is Document_TB07);
Left join

IntervalMatch (Time,Car)
LOAD StartTime,EndTime, Car
Resident BI;

LEFT Join (BI)
LOAD count(Car) as Passengers, StartTime,EndTime,Car
Resident PRODATABASE
Group by StartTime,EndTime,Car
;
Drop table PRODATABASE;&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 25 Sep 2020 14:39:39 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-09-25T14:39:39Z</dc:date>
    <item>
      <title>IntervalMatch not getting some values</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747205#M590633</link>
      <description>&lt;P&gt;I had a question on how to interval match and it was answered here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Intermatch-count-with-several-lines/m-p/1745676#M100064" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Intermatch-count-with-several-lines/m-p/1745676#M100064&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;It worked fine and I was doing some analysis and realized it was just getting 90% of my values on the IntervalMatch and I can't figure out why...&lt;/P&gt;&lt;P&gt;I have two databases:&amp;nbsp;&lt;BR /&gt;1ª: Travels: With the car, StartTime and EndTime&lt;BR /&gt;2ª Passengers: With the car and Time.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and I want the number of passengers on each travel. It was working fine but is not getting all the values, I have attached and example and it would be great if someone could help me.&lt;/P&gt;&lt;P&gt;On the image, the frist two trips should have passengers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vinerc_0-1601042304121.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41225i02602CA08D5533EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vinerc_0-1601042304121.png" alt="Vinerc_0-1601042304121.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;[BI]:&lt;BR /&gt;LOAD Car,&lt;BR /&gt;date(StartTime,'DD/MM/YYYY hh:mm:ss') as StartTime,&lt;BR /&gt;date([EndTime],'DD/MM/YYYY hh:mm:ss') as EndTime&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\viner\Desktop\Travels.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;[PRODATABASE]:&lt;BR /&gt;LOAD Car,&lt;BR /&gt;Time&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\viner\Desktop\Passengers.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Document_TB07);&lt;BR /&gt;Left join&lt;BR /&gt;IntervalMatch (Time,Car)&lt;BR /&gt;LOAD StartTime,EndTime, Car&lt;BR /&gt;Resident BI;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LEFT Join (BI)&lt;BR /&gt;LOAD count(Car) as Passengers, StartTime,EndTime,Car&lt;BR /&gt;Resident PRODATABASE&lt;BR /&gt;Group by StartTime,EndTime,Car&lt;BR /&gt;;&lt;BR /&gt;Drop table PRODATABASE;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 13:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747205#M590633</guid>
      <dc:creator>Vinerc</dc:creator>
      <dc:date>2020-09-25T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch not getting some values</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747228#M590634</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112480"&gt;@Vinerc&lt;/a&gt;&amp;nbsp; try rounding of your timestamp to correct representation of time&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
[BI]:
LOAD Car,
timestamp(floor(StartTime,1/24/60)) as StartTime,
timestamp(floor(EndTime,1/24/60)) as EndTime
FROM
[\Travels.xlsx]
(ooxml, embedded labels, table is Sheet1);

[PRODATABASE]:
LOAD Car,
timestamp(floor(Time,1/24/60)) as Time
FROM
[\Passengers.xlsx]
(ooxml, embedded labels, table is Document_TB07);
Left join

IntervalMatch (Time,Car)
LOAD StartTime,EndTime, Car
Resident BI;

LEFT Join (BI)
LOAD count(Car) as Passengers, StartTime,EndTime,Car
Resident PRODATABASE
Group by StartTime,EndTime,Car
;
Drop table PRODATABASE;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 25 Sep 2020 14:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747228#M590634</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-25T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch not getting some values</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747294#M590635</link>
      <description>&lt;P&gt;Thanks you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;. It worked!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 17:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-not-getting-some-values/m-p/1747294#M590635</guid>
      <dc:creator>Vinerc</dc:creator>
      <dc:date>2020-09-25T17:56:02Z</dc:date>
    </item>
  </channel>
</rss>

