<?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: Interval Match help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983621#M335727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 16:51:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-25T16:51:17Z</dc:date>
    <item>
      <title>Interval Match help</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983619#M335725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time. Could you kindly have a look at the below code or the attached application and please let me know the error in the interval match function.&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;EmployeeName, id, Designation, Employmentdate&lt;/P&gt;&lt;P&gt;Kelvin,1,Eng,04/09/08&lt;/P&gt;&lt;P&gt;Kelvin,1,Sr.Eng,04/09/09&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;EmployeeName,&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;Designation,&lt;/P&gt;&lt;P&gt;Date(Employmentdate,'DD/MM/YYYY') AS Employmentdates&lt;/P&gt;&lt;P&gt;Resident Employee;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Employee;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salary:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;id,Salary,Startdate&lt;/P&gt;&lt;P&gt;1,20000,01/01/08&lt;/P&gt;&lt;P&gt;1,40000,01/01/09&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salary_1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;Salary,&lt;/P&gt;&lt;P&gt;Startdate,&lt;/P&gt;&lt;P&gt;if(Previous(id)= id,date(Date#(Startdate)-1)) as EndDate&lt;/P&gt;&lt;P&gt;Resident Salary&lt;/P&gt;&lt;P&gt;Order by Startdate desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Salary;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salary_2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;Salary,&lt;/P&gt;&lt;P&gt;Date(Startdate,'DD/MM/YYYY') AS Startdates,&lt;/P&gt;&lt;P&gt;Date(EndDate,'DD/MM/YYYY') AS EndDates&lt;/P&gt;&lt;P&gt;resident Salary_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Salary_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch(Employmentdates)&lt;/P&gt;&lt;P&gt;Load Startdates,EndDates&lt;/P&gt;&lt;P&gt;Resident Salary_2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;Kiruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983619#M335725</guid>
      <dc:creator />
      <dc:date>2015-11-25T16:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match help</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983620#M335726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;EmployeeName, id, Designation, Employmentdate&lt;/P&gt;&lt;P&gt;Kelvin,1,Eng,04/09/08&lt;/P&gt;&lt;P&gt;Kelvin,1,Sr.Eng,04/09/09&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;EmployeeName,&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;Designation,&lt;/P&gt;&lt;P&gt;Date(Employmentdate,'DD/MM/YYYY') AS Employmentdates&lt;/P&gt;&lt;P&gt;Resident Employee;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Employee;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salary:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;id,Salary,Startdate&lt;/P&gt;&lt;P&gt;1,20000,01/01/08&lt;/P&gt;&lt;P&gt;1,40000,01/01/09&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salary_1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;Salary,&lt;/P&gt;&lt;P&gt;Startdate,&lt;/P&gt;&lt;P&gt;if(Previous(id)= id,date(Date#&lt;STRONG&gt;(previous(Startdate)&lt;/STRONG&gt;)-1)&lt;STRONG&gt;, today()&lt;/STRONG&gt;) as EndDate&lt;/P&gt;&lt;P&gt;Resident Salary&lt;/P&gt;&lt;P&gt;Order by Startdate desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Salary;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salary_2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;Salary,&lt;/P&gt;&lt;P&gt;Date(Startdate,'DD/MM/YYYY') AS Startdates,&lt;/P&gt;&lt;P&gt;Date(EndDate,'DD/MM/YYYY') AS EndDates&lt;/P&gt;&lt;P&gt;resident Salary_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Salary_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Employees)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(Employmentdates, id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load Startdates,EndDates,&lt;STRONG&gt; id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Salary_2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983620#M335726</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-25T16:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match help</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983621#M335727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-help/m-p/983621#M335727</guid>
      <dc:creator />
      <dc:date>2015-11-25T16:51:17Z</dc:date>
    </item>
  </channel>
</rss>

