<?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: Find Value Range with maximum count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Value-Range-with-maximum-count/m-p/505909#M189156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the new Field in the Script called "Range_Value" by below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF( colName &amp;gt; 0 and colName&amp;nbsp; &amp;lt;=75, '0.01% - 75%',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF( colName &amp;gt; 75 and colName &amp;lt;= 85, '75.01% - 85%',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF( colName &amp;gt; 85 and colName &amp;lt;=95, '85.01% - 95%',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; '&amp;gt;=95.01%'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ))) AS Range_Value&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Source;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Use the below Expression in the Text Object:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Range_Value&lt;/SPAN&gt;, -Aggr(Count(ColName),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Range_Value&lt;/SPAN&gt;) )&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please post some sample data so Community will help more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Nov 2013 01:47:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-29T01:47:22Z</dc:date>
    <item>
      <title>Find Value Range with maximum count</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Value-Range-with-maximum-count/m-p/505908#M189155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an expression in my Chart that categorises all the numerical values in a column and places them within a certain range. This is what it looks like:&lt;/P&gt;&lt;P&gt;=aggr( &lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( colName &amp;gt; 0 and colName&amp;nbsp; &amp;lt;=75, '0.01% - 75%',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( colName &amp;gt; 75 and colName &amp;lt;= 85, '75.01% - 85%',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( colName &amp;gt; 85 and colName &amp;lt;=95, '85.01% - 95%',&lt;/P&gt;&lt;P&gt;&amp;nbsp; '&amp;gt;=95.01%'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ))),&lt;/P&gt;&lt;P&gt;&amp;nbsp; colName&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is - if I want to have a Text Object that displays the range with the highest number of values within it, how would I do that? I've thought about nesting it in max() or FirstSortedValue(), but don't really know how to go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help,&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 00:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Value-Range-with-maximum-count/m-p/505908#M189155</guid>
      <dc:creator />
      <dc:date>2013-11-29T00:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find Value Range with maximum count</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Value-Range-with-maximum-count/m-p/505909#M189156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the new Field in the Script called "Range_Value" by below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF( colName &amp;gt; 0 and colName&amp;nbsp; &amp;lt;=75, '0.01% - 75%',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF( colName &amp;gt; 75 and colName &amp;lt;= 85, '75.01% - 85%',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF( colName &amp;gt; 85 and colName &amp;lt;=95, '85.01% - 95%',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; '&amp;gt;=95.01%'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ))) AS Range_Value&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Source;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Use the below Expression in the Text Object:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Range_Value&lt;/SPAN&gt;, -Aggr(Count(ColName),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Range_Value&lt;/SPAN&gt;) )&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please post some sample data so Community will help more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 01:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Value-Range-with-maximum-count/m-p/505909#M189156</guid>
      <dc:creator />
      <dc:date>2013-11-29T01:47:22Z</dc:date>
    </item>
  </channel>
</rss>

