<?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 InvervalMatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146173#M24770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is a question about "IntervalMatch".&lt;/P&gt;&lt;P&gt;I have an inventory table which includes inventory qty only within each period, and I want to match dates with the periods so I can have inventory qty for everyday.&lt;/P&gt;&lt;P&gt;The following codes work for only several SKUs. Could anyone help with the codes? Thanks!!&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Inventory Table&lt;/P&gt;&lt;P&gt;SKU FirstDate LastDate QTY&lt;/P&gt;&lt;P&gt;015341755069 2/11/2008 2/27/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/28/2008 6/4/2009 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates&lt;/P&gt;&lt;P&gt;1/7/2008-6/4/2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired Table&lt;/P&gt;&lt;P&gt;SKU Dates QTY&lt;/P&gt;&lt;P&gt;015341755069 2/11/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/12/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/13/2008 0&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;015341755069 2/27/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/28/2008 1&lt;/P&gt;&lt;P&gt;015341755069 2/29/2008 1&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;015341755069 6/4/2008 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-263_sourceID:263" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 21:28:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-08T21:28:53Z</dc:date>
    <item>
      <title>InvervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146173#M24770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is a question about "IntervalMatch".&lt;/P&gt;&lt;P&gt;I have an inventory table which includes inventory qty only within each period, and I want to match dates with the periods so I can have inventory qty for everyday.&lt;/P&gt;&lt;P&gt;The following codes work for only several SKUs. Could anyone help with the codes? Thanks!!&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Inventory Table&lt;/P&gt;&lt;P&gt;SKU FirstDate LastDate QTY&lt;/P&gt;&lt;P&gt;015341755069 2/11/2008 2/27/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/28/2008 6/4/2009 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates&lt;/P&gt;&lt;P&gt;1/7/2008-6/4/2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired Table&lt;/P&gt;&lt;P&gt;SKU Dates QTY&lt;/P&gt;&lt;P&gt;015341755069 2/11/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/12/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/13/2008 0&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;015341755069 2/27/2008 0&lt;/P&gt;&lt;P&gt;015341755069 2/28/2008 1&lt;/P&gt;&lt;P&gt;015341755069 2/29/2008 1&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;015341755069 6/4/2008 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-263_sourceID:263" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 21:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146173#M24770</guid>
      <dc:creator />
      <dc:date>2009-06-08T21:28:53Z</dc:date>
    </item>
    <item>
      <title>InvervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146174#M24771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dates.qvd uploaded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 22:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146174#M24771</guid>
      <dc:creator />
      <dc:date>2009-06-08T22:08:16Z</dc:date>
    </item>
    <item>
      <title>InvervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146175#M24772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inv.qvd uploaded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 22:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146175#M24772</guid>
      <dc:creator />
      <dc:date>2009-06-08T22:11:22Z</dc:date>
    </item>
    <item>
      <title>InvervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146176#M24773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have to describe the problem in more detail. I downloaded your files, ran the load, and the results look fine to me. You have 0 up through 2/27/2008, then it switches to 1, just like you asked for. I chose another SKU, and while it was MUCH more complicated, the first set of values that I looked at looked correct.&lt;/P&gt;&lt;P&gt;What problem are you seeing? Is there some specific SKU I need to select to see the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 04:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146176#M24773</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-09T04:40:09Z</dc:date>
    </item>
    <item>
      <title>InvervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146177#M24774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem was when I limited SKU to only one or two items, the code worked as you saw.&lt;/P&gt;&lt;P&gt;But when I tried to load everything, the execuation of reload failed.&lt;/P&gt;&lt;P&gt;Even if I limit "Date" to only one day, it still failed. I am wondering if it's a problem of memory limit.&lt;/P&gt;&lt;P&gt;But since date is limited to 1 row, inventory is only read 40,000 row or so(if I am not mistaken, I don't have files with me right now),&lt;/P&gt;&lt;P&gt;there shouldn't be a memory problem.&lt;/P&gt;&lt;P&gt;What should we do to solve the problem?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;(I'll reload more information when I get data with me)&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 21:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146177#M24774</guid>
      <dc:creator />
      <dc:date>2009-06-10T21:02:07Z</dc:date>
    </item>
    <item>
      <title>InvervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146178#M24775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran your sample without the Join and it generated 84M rows. Fit ok in my RAM but when I tried to do the Join I ran out of RAM. I frequently use IntervalMatch for this kind of problem, but I can see it may not a great solution when you have a large number of rows.&lt;/P&gt;&lt;P&gt;Anyone suggest a better way that can handle a large product or rows?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 03:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/InvervalMatch/m-p/146178#M24775</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-06-11T03:06:38Z</dc:date>
    </item>
  </channel>
</rss>

