<?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 problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737682#M670148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I did not pay attention to the orderdate. my mistake. again thanks alot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 12:50:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-14T12:50:46Z</dc:date>
    <item>
      <title>intervalMatch problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737678#M670141</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;&lt;/P&gt;&lt;P&gt;I have two tables: One table that contains the orderDate. And another table that has the ContractStartDate and ContractEndDate&lt;/P&gt;&lt;P&gt;When I do a left join I see the orderDate, ContractDate and ContractEndDate.&lt;/P&gt;&lt;P&gt;Now, when I use IntervalMatch to build the dates between, I null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really would like to know, why is it that the IntervalMatch does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since an Order can have more than 1 contractdates, I used min and max functions to create 1 line per contract/supplier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at my script.&lt;/P&gt;&lt;P&gt;Looking forward for the solution &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737678#M670141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-01T14:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: intervalMatch problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737679#M670143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello your script is wrong. Firstly, we can't use the Left Join on the IntervelMatch function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modfied the script and find the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP2_Facts:&lt;/P&gt;&lt;P&gt;LOAD contractCompliant.KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; supplierId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; productcategoryId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contractId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Orderdate.KEY&lt;/P&gt;&lt;P&gt;FROM FACTtable.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_BRIDGE:&lt;/P&gt;&lt;P&gt;IntervalMatch(Orderdate.KEY,contractCompliant.KEY)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; numStartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; numEndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; contractCompliant.KEY&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD contractCompliant.KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(ContractStartDate) as numStartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(ContractEndDate)&amp;nbsp; as numEndDate&lt;/P&gt;&lt;P&gt;FROM Contract.qvd (qvd) Group by contractCompliant.KEY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT Join (TMP2_Facts)&lt;/P&gt;&lt;P&gt;LOAD * Resident TEMP_BRIDGE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TEMP_BRIDGE ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737679#M670143</guid>
      <dc:creator />
      <dc:date>2014-10-01T15:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: intervalMatch problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737680#M670145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution does not work. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;Both Contractdates are empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737680#M670145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-01T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: intervalMatch problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737681#M670146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason why I got null value is the the OrderDate is 30-01-2014 and StartDate &amp;amp; Enddate are 01-01-2010 and 01-01-2014. The OrderDate is out of start &amp;amp; end date. so the values are null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 18:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737681#M670146</guid>
      <dc:creator />
      <dc:date>2014-10-01T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: intervalMatch problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737682#M670148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I did not pay attention to the orderdate. my mistake. again thanks alot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 12:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalMatch-problem/m-p/737682#M670148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T12:50:46Z</dc:date>
    </item>
  </channel>
</rss>

