<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441627#M432521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ankita you are magic! it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have just the last challange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the sales-rep info will be loaded by an excel file managed by user, could it be that the user do a typo creating an overlapping situation like the one highlighted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There's a way to prevent this and be able to don't duplicate the Invoice lines?&lt;/STRONG&gt; (find attached the example with duplication of lines for invoice table)&lt;/P&gt;&lt;P&gt;Thank you! ! !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="duplicates.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184203_duplicates.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 14:34:42 GMT</pubDate>
    <dc:creator>qlikviewaf</dc:creator>
    <dc:date>2017-11-22T14:34:42Z</dc:date>
    <item>
      <title>IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441624#M432518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;i started to use interval-match to link the invoice table with the sales rep table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to assign to the invoice table a sales rep using as keyfield the customer id and the Invoice date (based on the range start-end).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SALES RAP.png" class="jive-image image-1" src="/legacyfs/online/184177_SALES RAP.png" style="height: 112px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this statement &lt;STRONG&gt;IntervalMatch (InvoiceDate,CustomerID) LOAD Start, End Resident SalesRep; &lt;/STRONG&gt;but i got duplicates then as shown in the attachement example. Where i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i expect of course to have just 2 record as invoice!&lt;BR /&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SALES RAP.png" class="jive-image image-2" src="/legacyfs/online/184202_SALES RAP.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441624#M432518</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2017-11-22T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441625#M432519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA the qvw to your answer. Also writing the script below in case you are not able to open the doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesRep:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID, Start, End, SalesRep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 01/01/2014, 02/01/2014, Lecorn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 04/01/2014, 06/01/2014, Giorgione&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount, CustomerID, InvoiceDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100, A, 01/01/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500, A, 05/01/2014&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;Left join(Invoice)&lt;/P&gt;&lt;P&gt;Intervalmatch(InvoiceDate)&lt;/P&gt;&lt;P&gt;LOAD Start, End&lt;/P&gt;&lt;P&gt;RESIDENT SalesRep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (Invoice)&lt;/P&gt;&lt;P&gt;LOAD * resident SalesRep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table SalesRep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ankita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 11:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441625#M432519</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2017-11-22T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441626#M432520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think an Extended Interval Match might be needed here to join on CustomerID besides just Start and End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SalesRep:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Start, End, CustomerID, SalesRep&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2014, 02/01/2014, A, Lecorn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;04/01/2014, 06/01/2014, A, Giorgione&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoices:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;InvoiceDate, CustomerID, Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2014, A, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;05/01/2014, A, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Invoices)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch (InvoiceDate, CustomerID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Start,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;CustomerID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident SalesRep;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Invoices)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident SalesRep;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table SalesRep;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184220_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441626#M432520</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441627#M432521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ankita you are magic! it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have just the last challange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the sales-rep info will be loaded by an excel file managed by user, could it be that the user do a typo creating an overlapping situation like the one highlighted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There's a way to prevent this and be able to don't duplicate the Invoice lines?&lt;/STRONG&gt; (find attached the example with duplication of lines for invoice table)&lt;/P&gt;&lt;P&gt;Thank you! ! !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="duplicates.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184203_duplicates.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 14:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441627#M432521</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2017-11-22T14:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441628#M432522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for late reply!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below the script and the qvw attached for your above stated query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempSalesRep:&lt;/P&gt;&lt;P&gt;LOAD CustomerID, Date#(Start,'MM/DD/YYYY') as Start, Date#(End,'MM/DD/YYYY') as End, SalesRep INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID, Start, End, SalesRep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 01/01/2014, 04/01/2014, Lecorn&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 04/01/2014, 06/01/2014, Giorgione&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 04/01/2014, 06/01/2014, Giorgione&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesRep:&lt;/P&gt;&lt;P&gt;Load CustomerID,&lt;/P&gt;&lt;P&gt;Start as OldStart,&lt;/P&gt;&lt;P&gt;End,&lt;/P&gt;&lt;P&gt;SalesRep,&lt;/P&gt;&lt;P&gt;IF(Peek(End)=Start,Date(AddMonths(Start,1),'MM/DD/YYYY'),Start) as Start&lt;/P&gt;&lt;P&gt;Resident TempSalesRep&lt;/P&gt;&lt;P&gt;order by CustomerID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempSalesRep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice:&lt;/P&gt;&lt;P&gt;LOAD Amount, CustomerID, Date#(InvoiceDate,'MM/DD/YYYY') as InvoiceDate INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount, CustomerID, InvoiceDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100, A, 01/01/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500, A, 04/01/2014&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500, C, 05/01/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Invoice)&lt;/P&gt;&lt;P&gt;Intervalmatch(InvoiceDate)&lt;/P&gt;&lt;P&gt;LOAD Start, End&lt;/P&gt;&lt;P&gt;RESIDENT SalesRep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Invoice)&lt;/P&gt;&lt;P&gt;LOAD * resident SalesRep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table SalesRep;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 10:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441628#M432522</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2017-12-28T10:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441629#M432523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;I would like to connect to you for Job Prospective. May be also I may help you in some way. Please connect to me.&lt;BR /&gt;Please don't mind posting this here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 05:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441629#M432523</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2018-02-08T05:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441630#M432524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you find the answer correct, kindly mark it as correct to close the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441630#M432524</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2018-02-15T11:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441631#M432525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not created this discussion. Therefore can't close it. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please send me mail to connect @ &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:timanshu.vir@gmail.com"&gt;timanshu.vir@gmail.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch/m-p/1441631#M432525</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2018-03-08T09:45:39Z</dc:date>
    </item>
  </channel>
</rss>

