<?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: Maximum value in Class function results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589117#M218459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks for the insight, Rob. I think I'm close. Since the dimension is sorted alphabetically the result is looking at the max value per column, and formatting accordingly. I can get the formatting correct by sorting by the count(Num) expression, however I would prefer alphabetically. I included the pic of what this is returning.&amp;nbsp; I'm wondering if I can dynamically resort after formatting, or somehow use your formula to grab the max value of the entire result, and format based on that result. I can live with the change in sorting, but thought I'd see if you have any other thoughts. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here is the background formatting I am using on the expression:&lt;/SPAN&gt; &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;BR /&gt;Forced Max:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;rgb( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (10/&lt;SPAN style="color: #ff0000;"&gt;360&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// red&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;360&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// green&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;360&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// blue&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Calculated Max:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;rgb( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (10/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #ff0000;"&gt;(Num),0,999)),1,999))&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// red&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;RangeMax(Top(RangeMax(before(count(Num),0,999)),1,999))&lt;/SPAN&gt;)*count(Num), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// green&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;RangeMax(Top(RangeMax(before(count(Num),0,999)),1,999))&lt;/SPAN&gt;)*count(Num) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// blue&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="class function results2.jpg" class="jive-image" src="/legacyfs/online/58368_class function results2.jpg" style="width: 620px; height: 259px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2014 11:37:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-05T11:37:22Z</dc:date>
    <item>
      <title>Maximum value in Class function results</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589114#M218456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to apply heat map formatting to my chart which would be driven by the max value within the chart; In the example below, I'm after the 372.&amp;nbsp; I've tried embedding the class within an aggr to carve out the max, but that clearly doesn't work. I'm curious if anyone has found a solution. Any insight would be great! Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="class function results.jpg" class="jive-image" src="/legacyfs/online/58316_class function results.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 19:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589114#M218456</guid>
      <dc:creator />
      <dc:date>2014-05-02T19:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value in Class function results</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589115#M218457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe more about your need?&lt;/P&gt;&lt;P&gt;I´m not following you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 19:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589115#M218457</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-05-02T19:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value in Class function results</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589116#M218458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you've noted, you typically would use aggr() to find the max but aggr() won't operate with a calculated dimension as far as I know. Here's an alternative I think will work. Assume your value expression is "count(Num)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=RangeMax(Top(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RangeMax(before(count(Num),0,999))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,1,999))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 21:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589116#M218458</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-05-02T21:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value in Class function results</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589117#M218459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks for the insight, Rob. I think I'm close. Since the dimension is sorted alphabetically the result is looking at the max value per column, and formatting accordingly. I can get the formatting correct by sorting by the count(Num) expression, however I would prefer alphabetically. I included the pic of what this is returning.&amp;nbsp; I'm wondering if I can dynamically resort after formatting, or somehow use your formula to grab the max value of the entire result, and format based on that result. I can live with the change in sorting, but thought I'd see if you have any other thoughts. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here is the background formatting I am using on the expression:&lt;/SPAN&gt; &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;BR /&gt;Forced Max:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;rgb( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (10/&lt;SPAN style="color: #ff0000;"&gt;360&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// red&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;360&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// green&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;360&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// blue&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Calculated Max:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;rgb( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (10/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #ff0000;"&gt;(Num),0,999)),1,999))&lt;/SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Num), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// red&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;RangeMax(Top(RangeMax(before(count(Num),0,999)),1,999))&lt;/SPAN&gt;)*count(Num), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// green&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 - (200/&lt;SPAN style="color: #ff0000;"&gt;RangeMax(Top(RangeMax(before(count(Num),0,999)),1,999))&lt;/SPAN&gt;)*count(Num) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;// blue&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="class function results2.jpg" class="jive-image" src="/legacyfs/online/58368_class function results2.jpg" style="width: 620px; height: 259px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 11:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-in-Class-function-results/m-p/589117#M218459</guid>
      <dc:creator />
      <dc:date>2014-05-05T11:37:22Z</dc:date>
    </item>
  </channel>
</rss>

