<?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 IntervalMatch() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/351704#M130435</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;i have the following problem. In the attached sample i have two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;users: This lists for a number of people their role with a from and to date field.&lt;/P&gt;&lt;P&gt;logins: This lists for a number of people date and location of a login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am trying to determine the role at the time of the login. The idea is to have one table in the end with one additional field "role" that gives me for each record the role of this person at the time of the log in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately what i tried did not work - yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 09:39:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-15T09:39:35Z</dc:date>
    <item>
      <title>IntervalMatch()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/351704#M130435</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;i have the following problem. In the attached sample i have two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;users: This lists for a number of people their role with a from and to date field.&lt;/P&gt;&lt;P&gt;logins: This lists for a number of people date and location of a login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am trying to determine the role at the time of the login. The idea is to have one table in the end with one additional field "role" that gives me for each record the role of this person at the time of the log in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately what i tried did not work - yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 09:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/351704#M130435</guid>
      <dc:creator />
      <dc:date>2012-05-15T09:39:35Z</dc:date>
    </item>
    <item>
      <title>IntervalMatch()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/351705#M130436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi, try joining the table directly when doing the interfal match, something like the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;users:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID,&amp;nbsp; DateFrom,&amp;nbsp;&amp;nbsp; DateTo,&amp;nbsp;&amp;nbsp; Role&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50,&amp;nbsp;&amp;nbsp; 2010-10-13,&amp;nbsp; 2012-02-10,&amp;nbsp; User&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50,&amp;nbsp;&amp;nbsp; 2010-02-03,&amp;nbsp; 2099-12-31,&amp;nbsp; Admin &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51,&amp;nbsp;&amp;nbsp; 2011-11-03,&amp;nbsp; 2011-12-10,&amp;nbsp; User&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51,&amp;nbsp;&amp;nbsp; 2011-12-11,&amp;nbsp; 2099-12-31,&amp;nbsp; Admin &lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;logins:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID,&amp;nbsp; LogInDt,&amp;nbsp;&amp;nbsp; Location&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50,&amp;nbsp;&amp;nbsp; 2010-10-13,&amp;nbsp; Loc_A&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50,&amp;nbsp;&amp;nbsp; 2012-05-15,&amp;nbsp; Loc_D&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51,&amp;nbsp;&amp;nbsp; 2012-02-11,&amp;nbsp; Loc_B&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;inner join(logins)&lt;BR /&gt;IntervalMatch (LogInDt, UserID) &lt;BR /&gt;Load &lt;BR /&gt; DateFrom,&lt;BR /&gt; DateTo,&lt;BR /&gt; UserID &lt;BR /&gt;Resident users;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;inner join(users)&lt;BR /&gt;load * resident logins;&lt;BR /&gt;drop table logins;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;exit script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 11:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/351705#M130436</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2012-05-15T11:47:11Z</dc:date>
    </item>
  </channel>
</rss>

