<?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 Multiple Range Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Range-Selection/m-p/215878#M69283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have an requirement of selecting multiple range. My sales range should fall in this category (Range is a field which I need)&lt;/P&gt;&lt;P&gt;Range&lt;/P&gt;&lt;P&gt;0 - 20&lt;/P&gt;&lt;P&gt;0 - 40&lt;/P&gt;&lt;P&gt;0 - 60&lt;/P&gt;&lt;P&gt;0 - 80&lt;/P&gt;&lt;P&gt;0 - 100&lt;/P&gt;&lt;P&gt;Suppose if my sales is 10, then it should fall in all the 5 categories(i.e., all should be enabled).and if my sales is 70, then it should fall in the last two categories. I know that an if statement will not work. Is there any other functiion will do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Apr 2010 23:15:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-15T23:15:40Z</dc:date>
    <item>
      <title>Multiple Range Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Range-Selection/m-p/215878#M69283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have an requirement of selecting multiple range. My sales range should fall in this category (Range is a field which I need)&lt;/P&gt;&lt;P&gt;Range&lt;/P&gt;&lt;P&gt;0 - 20&lt;/P&gt;&lt;P&gt;0 - 40&lt;/P&gt;&lt;P&gt;0 - 60&lt;/P&gt;&lt;P&gt;0 - 80&lt;/P&gt;&lt;P&gt;0 - 100&lt;/P&gt;&lt;P&gt;Suppose if my sales is 10, then it should fall in all the 5 categories(i.e., all should be enabled).and if my sales is 70, then it should fall in the last two categories. I know that an if statement will not work. Is there any other functiion will do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 23:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Range-Selection/m-p/215878#M69283</guid>
      <dc:creator />
      <dc:date>2010-04-15T23:15:40Z</dc:date>
    </item>
    <item>
      <title>Multiple Range Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Range-Selection/m-p/215879#M69284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am not quite sure what you are trying to achieve here. There are a number possible approaches that may work for you.&lt;/P&gt;&lt;P&gt;First is having a separate Yes/No field for each band, eg:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; ID,&lt;BR /&gt; if(Sales &amp;lt;= 20, 'Yes', 'No') as Range0to20,&lt;BR /&gt; if(Sales &amp;lt;= 40, 'Yes', 'No') as Range0to40,&lt;BR /&gt; ...&lt;/P&gt;&lt;P&gt;Or, if you want a single range field, with five entries for a sales value of 10 you could use the resident statement:&lt;BR /&gt;&lt;BR /&gt;SalesTable:&lt;BR /&gt;LOAD&lt;BR /&gt; ID,&lt;BR /&gt; Sales,&lt;BR /&gt; ...&lt;/P&gt;&lt;P&gt;Range:&lt;BR /&gt;LOAD&lt;BR /&gt; ID,&lt;BR /&gt; '0 - 20' as Range&lt;BR /&gt;RESIDENT SalesTable&lt;BR /&gt;WHERE Sales &amp;lt;= 20;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; ID,&lt;BR /&gt; '0 - 40' as Range&lt;BR /&gt;RESIDENT SalesTable&lt;BR /&gt;WHERE Sales &amp;lt;= 40;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you could not deal with the ranges in the load script, rather do it in expressions at the front end. The down side of that is that you would not be able to pick up on the ranges in list boxes and would be pretty much limited to showing the values in chart objects.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 23:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Range-Selection/m-p/215879#M69284</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-04-15T23:27:12Z</dc:date>
    </item>
  </channel>
</rss>

