<?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 Help with interval match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236528#M87704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this example&lt;/P&gt;&lt;P&gt;i should give you regulr preformence&lt;/P&gt;&lt;P&gt;hope its helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 21:39:36 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2010-02-10T21:39:36Z</dc:date>
    <item>
      <title>Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236527#M87703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have 2 tables I need to link. The first one is a Contracts table which contains the ClientId, the id of the contracted item, start date and end date of the contract. The 2nd one is a sales table, which contains the client id, item id and the invoice date. The idea of linking both is to analyze the sales of items sold under contract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first key I need is ClientId&amp;amp;ArticleId, but additionally I need to link the invoice dates to the date range of the contract. I tried defining the key between both and using the simple syntax of IntervalMatch, but I'm getting a loop. So I tried with the extended syntax of IntervalMatch of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateMatch:&lt;/P&gt;&lt;P&gt;IntervalMatch(InvoiceDate,key_ClientItem) Load StartDate, EndDate, key_ClientItem resident Contracts;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;but do to the poor performance after reload, I'm not sure this is the correct approach.&lt;/P&gt;&lt;P&gt;What do you guys suggest?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 21:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236527#M87703</guid>
      <dc:creator />
      <dc:date>2010-02-10T21:01:49Z</dc:date>
    </item>
    <item>
      <title>Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236528#M87704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this example&lt;/P&gt;&lt;P&gt;i should give you regulr preformence&lt;/P&gt;&lt;P&gt;hope its helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 21:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236528#M87704</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2010-02-10T21:39:36Z</dc:date>
    </item>
    <item>
      <title>Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236529#M87705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's exactly what I needed. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 21:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236529#M87705</guid>
      <dc:creator />
      <dc:date>2010-02-10T21:50:26Z</dc:date>
    </item>
    <item>
      <title>Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236530#M87706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I'm late to the party, but I took the trouble to build an example before the solution was posted, so I'm going to go ahead and post mine too.&lt;/P&gt;&lt;P&gt;So key_ClientItem = ClientId&amp;amp;ArticleId? And that field is on both tables? Looks right to me, then, at least on brief glance. I'd probably join the tables together, though, and not use the concatenated key.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN ([Sales])&lt;BR /&gt;INTERVALMATCH (Date, Client, Item)&lt;BR /&gt;LOAD&lt;BR /&gt; Start&lt;BR /&gt;,End&lt;BR /&gt;,Client&lt;BR /&gt;,Item&lt;BR /&gt;RESIDENT [Contracts]&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN ([Sales])&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT [Contracts]&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE [Contracts]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 21:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236530#M87706</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-10T21:53:39Z</dc:date>
    </item>
    <item>
      <title>Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236531#M87707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these solutions are working great, but now I'm having an issue. If in debug mode I load a million rows (my sales qvd has 400 million rows) everything works great, but at around 100 million the script fails with the dreaded Execution Failed - Execution finished' error. Any clues anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 02:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236531#M87707</guid>
      <dc:creator />
      <dc:date>2010-02-11T02:00:49Z</dc:date>
    </item>
    <item>
      <title>Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236532#M87708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better late than never! Works perfectly and IMHO more elegant than the other solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2010 04:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236532#M87708</guid>
      <dc:creator />
      <dc:date>2010-02-13T04:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236533#M87709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John.&amp;nbsp;&amp;nbsp; This is a wonderful, straightforward example that solved a huge complicated problem for me.&amp;nbsp; I wish all examples posted here were as concise and got right to the root issue.&amp;nbsp; THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 20:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236533#M87709</guid>
      <dc:creator />
      <dc:date>2013-04-25T20:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236534#M87710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU JOHN!&amp;nbsp; Huge help for me as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 23:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-interval-match/m-p/236534#M87710</guid>
      <dc:creator />
      <dc:date>2014-06-26T23:02:52Z</dc:date>
    </item>
  </channel>
</rss>

