<?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: How to Select a Range of Numeric Values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738743#M264049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the text box action...&lt;/P&gt;&lt;P&gt;Select in Field action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field = ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;concat(distinct {&amp;lt;ID = {"&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;12345678&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;12387654&lt;/SPAN&gt;"}&amp;gt;} ID, '|')&amp;amp;')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 13:03:42 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-07-24T13:03:42Z</dc:date>
    <item>
      <title>How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738742#M264048</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 field named "ID" and upon clicking onto a text box would like to select a range of IDs via Actions but I don't know what expression to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63041" alt="id_range.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63041_id_range.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume I would like to select all IDs from 12345678 to 12387654.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would the search string have to be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course an alternative solution is welcome, too - I mean, somehow this should be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raffael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 12:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738742#M264048</guid>
      <dc:creator />
      <dc:date>2014-07-24T12:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738743#M264049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the text box action...&lt;/P&gt;&lt;P&gt;Select in Field action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field = ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;concat(distinct {&amp;lt;ID = {"&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;12345678&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;12387654&lt;/SPAN&gt;"}&amp;gt;} ID, '|')&amp;amp;')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738743#M264049</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-24T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738744#M264050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the search string box enter:&lt;/P&gt;&lt;P&gt;&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;12345678 &lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;12387654&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738744#M264050</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-07-24T13:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738745#M264051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;12345678&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;12387654&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738745#M264051</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-07-24T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738746#M264052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luckily there is a somewhat easier solution. Nonetheless I would highly appreciate if you could dissect the expression for me. I would like to understand what it is doing and what purpose the various sub-expressions serve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raffael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738746#M264052</guid>
      <dc:creator />
      <dc:date>2014-07-24T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738747#M264053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Consider that you have ID &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;1,2,3,4,5,6,7,8,9,10…. Upto 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If you want to select ID 5 and 6, you have to write (5|6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If you want to select ID 5 to 9, you have to write (5|6|7|8|9) , But this is not a good way as you sometimes have to select from ID 100 to ID 150… &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So another way is to write an expression which will give you the result (100|101|……|150)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This can be achieved by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;CONCAT(YourExpression to get 100 to 150, ‘|’)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;CONCAT (DISTINCT ID,’|’) will give you all ID but we need to filter between 100 to 150, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So using a set analysis..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;CONCAT({&amp;lt;ID = {“&amp;gt;=100&amp;lt;=150”}&amp;gt;}DISTINCT ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Will give you desired result…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This we are now enclosing in ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;‘(‘*CONCAT({&amp;lt;ID = {“&amp;gt;=100&amp;lt;=150”}&amp;gt;}DISTINCT ID)&amp;amp;’)’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope this will make clear…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Manish Kachhia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738747#M264053</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-24T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to Select a Range of Numeric Values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738748#M264054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;There are situations where you may need to use the technique explained by Manish, but this is not one of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not true that you &lt;STRONG&gt;&lt;EM&gt;have to&lt;/EM&gt;&lt;/STRONG&gt; write &lt;SPAN style="font-size: 8pt;"&gt;(100|101|……|150) &lt;SPAN style="font-size: 10pt;"&gt;to select all ID:s from 100 to 150,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;a simpler way is to write: &lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;gt;=100 &amp;lt;=150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;or: &lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;gt;99 &amp;lt;151&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;IMG alt="sel1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63123_sel1.JPG.jpg" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;On a side note, what result do you expect when you enter a search expression like this: &lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;gt;=100 &amp;lt;=80&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Maybe you expect no resulting matches since an ID can't be larger than or equal to 100 and at the same time be smaller than or equal to 80?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;But that is not what you get.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What you get is the result of &lt;STRONG&gt;&lt;EM&gt;the OR:ed expression&lt;/EM&gt;&lt;/STRONG&gt;, that is records with ID &amp;gt;=100 &lt;STRONG style="text-decoration: underline;"&gt;or&lt;/STRONG&gt; ID &amp;lt;=80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Note the "gap" below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="sel2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63124_sel2.JPG.jpg" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 06:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-a-Range-of-Numeric-Values/m-p/738748#M264054</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-07-25T06:41:15Z</dc:date>
    </item>
  </channel>
</rss>

