<?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: How to have INTERVALMATCH join also other columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1619216#M445633</link>
    <description>&lt;P&gt;Try this in your Hits-generation script.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Hits:
LOAD
  %MatchID AS Hits.MatchID,
  %GoalID,
  Goal.Timestamp AS Hits.Timestamp
RESIDENT 
  Goal; 

INNER JOIN(Hits)
INTERVALMATCH (Hits.Timestamp, Hits.MatchID) 
LEFT JOIN LOAD 
  Conn.ConnStart AS Hits.ConnStart, 
  Conn.ConnEnd AS Hits.ConnEnd,
  %MatchID AS Hits.MatchID
RESIDENT 
  Conn;

LEFT JOIN (Hits)
LOAD 
  %MatchID as Hits.MatchID, //Join
  Conn.ConnStart as Hits.ConnStart,    //Join
  Conn.ConnEnd as Hits.ConnEnd, //Join      
  Conn.UserName as Hits.UserName
Resident Conn;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2019 10:13:17 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-09-02T10:13:17Z</dc:date>
    <item>
      <title>How to have INTERVALMATCH join also other columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1607103#M444812</link>
      <description>&lt;P&gt;Let's take this example with&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;one table showing when a user connects and disconnects to a streaming soccer matches channel&lt;/LI&gt;&lt;LI&gt;another table with datetime of when goals are scored&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The resulting&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;Hits&lt;/FONT&gt;&lt;SPAN&gt; table shows e.g. that Goal&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;G01&lt;/FONT&gt;&lt;SPAN&gt; of Match&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;M01&lt;/FONT&gt;&lt;SPAN&gt; has been seen by 2 viewers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;How do I add&amp;nbsp;&lt;FONT face="courier new,courier" color="#000000"&gt;UserName&lt;/FONT&gt; column?&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Conn:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * INLINE [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%MatchID, Conn.ConnStart,&amp;nbsp; &amp;nbsp; Conn.ConnEnd,&amp;nbsp; &amp;nbsp; &amp;nbsp; Conn.UserName&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;M01,&amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2010 10:00,&amp;nbsp; 01/01/2010 11:00,&amp;nbsp; UserA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;M01,&amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2010 10:30,&amp;nbsp; 28/02/2010 12:00,&amp;nbsp; UserB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;M02,&amp;nbsp; &amp;nbsp; &amp;nbsp; 02/01/2010 09:30,&amp;nbsp; 02/01/2010 10:30,&amp;nbsp; UserA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;M02,&amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2010 08:00,&amp;nbsp; 02/01/2010 12:30,&amp;nbsp; UserC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Goal:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * INLINE [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%GoalID, %MatchID, Goal.Timestamp&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;G01,&amp;nbsp; &amp;nbsp; &amp;nbsp;M01,&amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2010 10:45&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;G02,&amp;nbsp; &amp;nbsp; &amp;nbsp;M01,&amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2010 11:45&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;G11,&amp;nbsp; &amp;nbsp; &amp;nbsp;M02,&amp;nbsp; &amp;nbsp; &amp;nbsp; 02/01/2010 09:00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;G12,&amp;nbsp; &amp;nbsp; &amp;nbsp;M02,&amp;nbsp; &amp;nbsp; &amp;nbsp; 02/01/2010 10:00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;G13,&amp;nbsp; &amp;nbsp; &amp;nbsp;M02,&amp;nbsp; &amp;nbsp; &amp;nbsp; 02/01/2010 12:00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hits:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD %MatchID AS Hits.MatchID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%GoalID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Goal.Timestamp AS Hits.Timestamp&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT Goal; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INNER JOIN(Hits)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INTERVALMATCH (Hits.Timestamp, Hits.MatchID) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LEFT JOIN LOAD Conn.ConnStart AS Hits.ConnStart, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Conn.ConnEnd AS Hits.ConnEnd,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%MatchID AS Hits.MatchID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT Conn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Hits.MatchID %GoalID Hits.Timestamp&amp;nbsp; &amp;nbsp; Hits.ConnEnd&amp;nbsp; &amp;nbsp; &amp;nbsp; Hits.ConnStart&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G01&amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2010 10:45&amp;nbsp; 01/01/2010 11:00&amp;nbsp; 01/01/2010 10:00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G01&amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2010 10:45&amp;nbsp; 28/02/2010 12:00&amp;nbsp; 01/01/2010 10:30&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G02&amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2010 11:45&amp;nbsp; 28/02/2010 12:00&amp;nbsp; 01/01/2010 10:30&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G11&amp;nbsp; &amp;nbsp; &amp;nbsp;02/01/2010 09:00&amp;nbsp; 02/01/2010 12:30&amp;nbsp; 01/01/2010 08:00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G12&amp;nbsp; &amp;nbsp; &amp;nbsp;02/01/2010 10:00&amp;nbsp; 02/01/2010 10:30&amp;nbsp; 02/01/2010 09:30&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G12&amp;nbsp; &amp;nbsp; &amp;nbsp;02/01/2010 10:00&amp;nbsp; 02/01/2010 12:30&amp;nbsp; 01/01/2010 08:00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;M02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G13&amp;nbsp; &amp;nbsp; &amp;nbsp;02/01/2010 12:00&amp;nbsp; 02/01/2010 12:30&amp;nbsp; 01/01/2010 08:00&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1607103#M444812</guid>
      <dc:creator>cicciput</dc:creator>
      <dc:date>2024-11-16T02:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to have INTERVALMATCH join also other columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1614872#M445358</link>
      <description>&lt;P&gt;Renzo, best I have is the following, not sure if you had reviewed these or not, but worth a look as that may provide the detail you need...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/LoadData/matching-intervals-to-discrete-data.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/LoadData/matching-intervals-to-discrete-data.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/IntervalMatch_(Extended_Syntax).htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/IntervalMatch_(Extended_Syntax).htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Design Blog area:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I do not have anything better for you, but the first link might have something to help I think.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 13:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1614872#M445358</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-21T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to have INTERVALMATCH join also other columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1619203#M445632</link>
      <description>&lt;P&gt;Hello Brett,&lt;/P&gt;&lt;P&gt;thanks for your reply, I'll have a look at all the docs you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Renzo&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 09:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1619203#M445632</guid>
      <dc:creator>cicciput</dc:creator>
      <dc:date>2019-09-02T09:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to have INTERVALMATCH join also other columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1619216#M445633</link>
      <description>&lt;P&gt;Try this in your Hits-generation script.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Hits:
LOAD
  %MatchID AS Hits.MatchID,
  %GoalID,
  Goal.Timestamp AS Hits.Timestamp
RESIDENT 
  Goal; 

INNER JOIN(Hits)
INTERVALMATCH (Hits.Timestamp, Hits.MatchID) 
LEFT JOIN LOAD 
  Conn.ConnStart AS Hits.ConnStart, 
  Conn.ConnEnd AS Hits.ConnEnd,
  %MatchID AS Hits.MatchID
RESIDENT 
  Conn;

LEFT JOIN (Hits)
LOAD 
  %MatchID as Hits.MatchID, //Join
  Conn.ConnStart as Hits.ConnStart,    //Join
  Conn.ConnEnd as Hits.ConnEnd, //Join      
  Conn.UserName as Hits.UserName
Resident Conn;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 10:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-INTERVALMATCH-join-also-other-columns/m-p/1619216#M445633</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-02T10:13:17Z</dc:date>
    </item>
  </channel>
</rss>

