<?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  Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389741#M145424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intervalmatch is defined as (&amp;gt;= &amp;lt;=) and this cannot be changed. The balance 4999999 belongs to two intervals simultaneously. But you can define your intervals differently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_A:&lt;/P&gt;&lt;P&gt;LOAD INT_TYPE, TO_BALANCE, CCY, ACTUAL_RATE&lt;/P&gt;&lt;P&gt;FROM Rate_Matrix2.xls (biff, embedded labels, table is [Rate Slab$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;Load *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(CCY=peek(CCY) and INT_TYPE=Peek(INT_TYPE),RangeSum(Peek(TO_BALANCE),0.0001),-1) as FROM_BALANCE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;resident Temp_A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;order by CCY, INT_TYPE, TO_BALANCE;&lt;/P&gt;&lt;P&gt;Drop Table Temp_A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD ClientNo, INT_TYPE, CCY, Balance&lt;/P&gt;&lt;P&gt;FROM Rate_Matrix2.xls (biff, embedded labels, table is [Client Data$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intervalmatch:&lt;/P&gt;&lt;P&gt;Left Join (B) &lt;/P&gt;&lt;P&gt;IntervalMatch (Balance,INT_TYPE,CCY) LOAD&amp;nbsp; FROM_BALANCE,TO_BALANCE,INT_TYPE,CCY&lt;/P&gt;&lt;P&gt;Resident A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 11:24:04 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-09-10T11:24:04Z</dc:date>
    <item>
      <title>IntervalMatch  Issue</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389736#M145419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attaching Application alongwith my data sources in excel files (containing three sheets , first one is about the rate definition , second one is about acutal data from client , and in the third sheet desired result is needed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently using IntervalMatch but won't give my desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Zain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 05:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389736#M145419</guid>
      <dc:creator />
      <dc:date>2012-09-10T05:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch  Issue</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389737#M145420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please find the attached file, it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Niranjan M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 08:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389737#M145420</guid>
      <dc:creator />
      <dc:date>2012-09-10T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch  Issue</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389738#M145421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible to have multiple keys in the intervalmatch. Here is an alternative solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD INT_TYPE, FROM_BALANCE, TO_BALANCE, CCY, ACTUAL_RATE&lt;/P&gt;&lt;P&gt;FROM Rate_Matrix2.xls (biff, embedded labels, table is [Rate Slab$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD ClientNo, INT_TYPE, CCY, Balance&lt;/P&gt;&lt;P&gt;FROM Rate_Matrix2.xls (biff, embedded labels, table is [Client Data$]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Intervalmatch:&lt;/P&gt;&lt;P&gt;Left Join (B) &lt;/P&gt;&lt;P&gt;IntervalMatch (Balance,INT_TYPE,CCY) LOAD&amp;nbsp; FROM_BALANCE,TO_BALANCE,INT_TYPE,CCY&lt;/P&gt;&lt;P&gt;Resident A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 08:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389738#M145421</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-09-10T08:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch  Issue</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389739#M145422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="21597" class="jive-image-thumbnail jive-image" onclick="" alt="output.png" src="https://community.qlik.com/legacyfs/online/21597_output.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for the solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But , if you observe the output table, you will notice that ClientNo: 2,6,9,10,15 have repeating records just because &lt;/P&gt;&lt;P&gt;these clients have exactly same Balances as (To_balance or From_bal have)&lt;/P&gt;&lt;P&gt;(i.e:&amp;nbsp; ClientNo&amp;nbsp; 2 have Balance 4999999 on the other hand in Rate Slab table &lt;/P&gt;&lt;P&gt;INT_TYPE =' ISI'&amp;nbsp; has Ranges from -0.1&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; 4999999&lt;/P&gt;&lt;P&gt;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4999999 -&amp;nbsp;&amp;nbsp;&amp;nbsp; 9999999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, that's why client 2 falls on both ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question is&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;IF MatchInterval works like Between operator so, logically Between Operator follows (&amp;gt;=&amp;nbsp; &amp;lt;=)&amp;nbsp; Rule.&lt;/P&gt;&lt;P&gt;But Is there any possible way that can implement this&amp;nbsp; (&amp;gt;&amp;nbsp; &amp;lt;=) rule&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;How do i get rid off with such (i.e: Client No 2, or you can say repeating records) kind of problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 10:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389739#M145422</guid>
      <dc:creator />
      <dc:date>2012-09-10T10:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch  Issue</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389740#M145423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="21598" class="jive-image-thumbnail jive-image" onclick="" alt="output-2.png" src="https://community.qlik.com/legacyfs/online/21598_output-2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for the solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but , if you observe the output table, you will notice that&lt;/P&gt;&lt;P&gt;ClientNo: 2,6,910,15 have repeating record just because &lt;/P&gt;&lt;P&gt;these clients have exactly same Balances as (To_balance or From_bal&amp;nbsp; have)&lt;/P&gt;&lt;P&gt;(i.e:&amp;nbsp; ClientNo&amp;nbsp; 2 have Balance 4999999 &lt;/P&gt;&lt;P&gt;on the other hand in Rate Slab table &lt;/P&gt;&lt;P&gt;INT_TYPE =' ISS'&amp;nbsp; has Ranges from -0.1-4999999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4999999-9999999&lt;/P&gt;&lt;P&gt;so that's why client 2 falls on both ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is IF MatchInterval works like Between operator so, logically &lt;/P&gt;&lt;P&gt;Between Operator follows (&amp;gt;=&amp;nbsp; &amp;lt;=) &lt;/P&gt;&lt;P&gt;But i need (&amp;gt;&amp;nbsp; &amp;lt;=) rule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;How do i get rid off with such(Client No 2, or you can say repeating records) kind of problem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 11:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389740#M145423</guid>
      <dc:creator />
      <dc:date>2012-09-10T11:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch  Issue</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389741#M145424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intervalmatch is defined as (&amp;gt;= &amp;lt;=) and this cannot be changed. The balance 4999999 belongs to two intervals simultaneously. But you can define your intervals differently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_A:&lt;/P&gt;&lt;P&gt;LOAD INT_TYPE, TO_BALANCE, CCY, ACTUAL_RATE&lt;/P&gt;&lt;P&gt;FROM Rate_Matrix2.xls (biff, embedded labels, table is [Rate Slab$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;Load *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(CCY=peek(CCY) and INT_TYPE=Peek(INT_TYPE),RangeSum(Peek(TO_BALANCE),0.0001),-1) as FROM_BALANCE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;resident Temp_A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;order by CCY, INT_TYPE, TO_BALANCE;&lt;/P&gt;&lt;P&gt;Drop Table Temp_A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD ClientNo, INT_TYPE, CCY, Balance&lt;/P&gt;&lt;P&gt;FROM Rate_Matrix2.xls (biff, embedded labels, table is [Client Data$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intervalmatch:&lt;/P&gt;&lt;P&gt;Left Join (B) &lt;/P&gt;&lt;P&gt;IntervalMatch (Balance,INT_TYPE,CCY) LOAD&amp;nbsp; FROM_BALANCE,TO_BALANCE,INT_TYPE,CCY&lt;/P&gt;&lt;P&gt;Resident A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 11:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-Issue/m-p/389741#M145424</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-09-10T11:24:04Z</dc:date>
    </item>
  </channel>
</rss>

