<?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: Get max cell value of all rows and columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283717#M580343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using different expression, but you want to get the max value over all expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I missed a better approach, but I think you need to use advanced aggregation together with maxrange, but use the full expression inside instead of the labels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;=if("A" = max(total aggr(rangemax( avg({&amp;lt;department={a}&amp;gt;}score), avg({&amp;lt;department={b}&amp;gt;}score)), relation)),red(80) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 16:46:59 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-01-17T16:46:59Z</dc:date>
    <item>
      <title>Get max cell value of all rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283715#M580341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a set of calculated numbers in a table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-family: courier new,courier;"&gt;Region A&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp; D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-family: courier new,courier;"&gt;Alfa&amp;nbsp;&amp;nbsp; 1.43 1.23 1.78 1.90&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-family: courier new,courier;"&gt;Beta&amp;nbsp;&amp;nbsp; 1.68 2.24 1.38 1.91&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-family: courier new,courier;"&gt;Gamma&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;2.71&lt;/SPAN&gt; 2.08 2.02 1.06&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-family: courier new,courier;"&gt;Delta&amp;nbsp; 1.68 1.59 1.42 1.15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to color the highest number (2.71) red using a expression in the "Background Color" attribute.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried this formula:&lt;/P&gt;&lt;P&gt;=IF(rank(rangemax(&lt;A&gt;,&lt;B&gt;,&lt;C&gt;,&lt;D&gt;))=1,rgb(250,200,200))&lt;/D&gt;&lt;/C&gt;&lt;/B&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Where &lt;A&gt; referens to the expression for column A.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it does not work.&lt;/P&gt;&lt;P&gt;=IF(max(rangemax(&lt;A&gt;,&lt;B&gt;,&lt;C&gt;,&lt;D&gt;))=&lt;/D&gt;&lt;/C&gt;&lt;/B&gt;&lt;/A&gt;&lt;A&gt;,rgb(250,200,200))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;does not work either...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing beeing colored...&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;I was expecting this to be solved easy, so I must be missing something fundamental here....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283715#M580341</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-01-17T16:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get max cell value of all rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283716#M580342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each expression use instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Max(TOTAL A) = &lt;A&gt;, RGB(250, 200, 200))&lt;/A&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283716#M580342</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-17T16:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get max cell value of all rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283717#M580343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using different expression, but you want to get the max value over all expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I missed a better approach, but I think you need to use advanced aggregation together with maxrange, but use the full expression inside instead of the labels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;=if("A" = max(total aggr(rangemax( avg({&amp;lt;department={a}&amp;gt;}score), avg({&amp;lt;department={b}&amp;gt;}score)), relation)),red(80) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283717#M580343</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-17T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Get max cell value of all rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283718#M580344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Miguel.&amp;nbsp; That expression will give me the max of each column, but what I want is the "single max" of all rows &lt;STRONG&gt;and &lt;/STRONG&gt;columns - &amp;gt; The max of all dimensions and expressions. It seems like Stefan has provided a soluition for this. Thanks for taking time to look into this. Reg. Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 08:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283718#M580344</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-01-18T08:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get max cell value of all rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283719#M580345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stefan, your solution is good and it solves my issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking time to look into this. Best Regards, Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 08:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-cell-value-of-all-rows-and-columns/m-p/283719#M580345</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-01-18T08:19:37Z</dc:date>
    </item>
  </channel>
</rss>

