<?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: Getting Interval Match wrong. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309596#M407229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sunny, Just now got it correct. Should have seen that clearly. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2017 10:40:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-25T10:40:14Z</dc:date>
    <item>
      <title>Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309589#M407222</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 a table say tab1 with empid, Date and some other fields. The date has every date from the joining date of the employee till today. Like if the joining date is 1/1/2017 and leave column which has 0 by default.&lt;/P&gt;&lt;P&gt;empid Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On leave&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2017 0&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1/2017 0&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25/4/2017 say today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.Now I have another table say tab2 which contains the details of the employee leaves&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;empid leave_start_date Leave_end_date&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05/02/2017&amp;nbsp;&amp;nbsp; 10/02/2017&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06/03/2017&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/03/2017&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to update the Onleave column to 1 if the Date falls in&amp;nbsp; the interval of leaves. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch (Date,TmpSPID)&lt;/P&gt;&lt;P&gt;Load [&lt;SPAN style="font-size: 13.3333px;"&gt;leave_start_date &lt;/SPAN&gt;], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="font-size: 13.3333px;"&gt;Leave_end_date&lt;/SPAN&gt;],[empid] as TmpSPID&lt;/P&gt;&lt;P&gt;Resident tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesnt give me any records even i have leaves for the employee in the leaves table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am not sure what am doing wrong. Hope some1 can guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 05:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309589#M407222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T05:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309590#M407223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here &lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 05:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309590#M407223</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-25T05:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309591#M407224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil, I have gone through the link already. As I need the interval of respective employees, I tried as stated in &lt;A href="https://community.qlik.com/qlik-blogpost/3148"&gt;Slowly Changing Dimensions&lt;/A&gt;. Please correct me if i am wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 05:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309591#M407224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T05:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309592#M407225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use WildMatch() for respective employees follow the link which i provide earlier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 06:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309592#M407225</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-25T06:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309593#M407226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil, I didnt get you. Can you please explain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 06:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309593#M407226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T06:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309594#M407227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309594#M407227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T08:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309595#M407228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TmpSPID&lt;/SPAN&gt; coming from? I think it is important to have the id name same between the two table before you do interval match because the synthetic key needs to include the ID as one of the fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tab1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TmpSPID&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OnLeave&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tab2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;empid as &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TmpSPID&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; leave_start_date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave_end_date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(Date, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TmpSPID&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;leave_start_date&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Leave_end_date&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TmpSPID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Resident Tab2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309595#M407228</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-25T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Interval Match wrong.</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309596#M407229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sunny, Just now got it correct. Should have seen that clearly. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 10:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Interval-Match-wrong/m-p/1309596#M407229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T10:40:14Z</dc:date>
    </item>
  </channel>
</rss>

