<?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: Range Calculation with Multiple Intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811880#M286559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your goal? Can you upload the result you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 19:49:26 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-11-11T19:49:26Z</dc:date>
    <item>
      <title>Range Calculation with Multiple Intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811879#M286558</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;I have a situation, in which I need to find the price range of a set of products. But, in this particular situation, I have multiple ranges that depend on the article Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple tables like this one, that differ in their name only:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid #000000; width: 170px; height: 125px;" width="168"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Range&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Inf&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sup&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;199&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;399&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;599&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;600&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;600&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;799&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;TD&gt;999999&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;They all may have totally different ranges, and therefore the intervals' limits. They are saved into individual QVD files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have only one table that looks like this one:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 189px; height: 79px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ArticleGroup&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ArticlePrice&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;625&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already tried a solution having only one range table, and it works right. I can't manage to make it work having multiple range tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14157346617131998" jivemacro_uid="_14157346617131998"&gt;
&lt;P&gt;Ranges:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LOAD Range, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inf, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sup&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [./ranges.QVD]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Left Join(Articles)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IntervalMatch (ArticlePrice)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LOAD distinct Inf, Sup Resident Ranges;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this solution somewhere in this forum, and it worked just fine, for that scenario. Maybe someone could help me modify it, so that I can reach my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agustin.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 19:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811879#M286558</guid>
      <dc:creator />
      <dc:date>2014-11-11T19:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Range Calculation with Multiple Intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811880#M286559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your goal? Can you upload the result you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 19:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811880#M286559</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-11T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Range Calculation with Multiple Intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811881#M286560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have to load all different ranges files in one table, like the first one but with a new column, Article Group. I suppose the different files are by ArticleGroup.&lt;/P&gt;&lt;P&gt;Then use the extended interval match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 20:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Calculation-with-Multiple-Intervals/m-p/811881#M286560</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-11T20:05:11Z</dc:date>
    </item>
  </channel>
</rss>

