<?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 Pivot table Color max and min issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599256#M737169</link>
    <description>&lt;P&gt;Hi all you gurus&lt;/P&gt;&lt;P&gt;I’m new to QlikView, and need a little help with a problem.&lt;/P&gt;&lt;P&gt;In a pivot table, I want to mark the highest and the lowers value with colors. That should probably be easy enough – however a want to do this within the different dimensions and would also like to show the highest total. Is that possible?&lt;/P&gt;&lt;P&gt;- And do I need to handle something when the number might not be unique? Let’s say for example the lowest number is 30, but we got that number represented more than one time?&lt;/P&gt;&lt;P&gt;I use a table to test this from a course I took, so some of you might know it.&lt;/P&gt;&lt;P&gt;I want it to look something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-05 07_32_00-QlikView.png" style="width: 393px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14950i489F615089DFF1A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-07-05 07_32_00-QlikView.png" alt="2019-07-05 07_32_00-QlikView.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;# Active customers&lt;/FONT&gt; got the following expression: Count(DISTINCT CustomerRecordCounter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the expression in the background color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried some different stuff, but without any luck – jet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Different attempts: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//if(Count(CustomerRecordCounter) = Max( Total CustomerRecordCounter), Red(),
//  if(Count(CustomerRecordCounter) = Min( Total CustomerRecordCounter), Green()))
  
  
//If(Count(CustomerRecordCounter)=max(Total &amp;lt;Year&amp;gt;CustomerRecordCounter),
//	Red(),
//	If(Count(CustomerRecordCounter)=min(Total &amp;lt;Year&amp;gt;CustomerRecordCounter),
//		Green())
//				)

//If(RangeMax(CustomerRecordCounter), Red())


//IF(Sum([CustomerRecordCounter])=RANGEMAX(TOP(TOTAL Sum([CustomerRecordCounter]),1,NOOFROWS(TOTAL))),Red())&lt;/LI-CODE&gt;&lt;P&gt;Any ideas to accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:05:22 GMT</pubDate>
    <dc:creator>Zwax</dc:creator>
    <dc:date>2024-11-16T03:05:22Z</dc:date>
    <item>
      <title>Pivot table Color max and min issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599256#M737169</link>
      <description>&lt;P&gt;Hi all you gurus&lt;/P&gt;&lt;P&gt;I’m new to QlikView, and need a little help with a problem.&lt;/P&gt;&lt;P&gt;In a pivot table, I want to mark the highest and the lowers value with colors. That should probably be easy enough – however a want to do this within the different dimensions and would also like to show the highest total. Is that possible?&lt;/P&gt;&lt;P&gt;- And do I need to handle something when the number might not be unique? Let’s say for example the lowest number is 30, but we got that number represented more than one time?&lt;/P&gt;&lt;P&gt;I use a table to test this from a course I took, so some of you might know it.&lt;/P&gt;&lt;P&gt;I want it to look something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07-05 07_32_00-QlikView.png" style="width: 393px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14950i489F615089DFF1A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-07-05 07_32_00-QlikView.png" alt="2019-07-05 07_32_00-QlikView.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;# Active customers&lt;/FONT&gt; got the following expression: Count(DISTINCT CustomerRecordCounter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the expression in the background color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried some different stuff, but without any luck – jet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Different attempts: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//if(Count(CustomerRecordCounter) = Max( Total CustomerRecordCounter), Red(),
//  if(Count(CustomerRecordCounter) = Min( Total CustomerRecordCounter), Green()))
  
  
//If(Count(CustomerRecordCounter)=max(Total &amp;lt;Year&amp;gt;CustomerRecordCounter),
//	Red(),
//	If(Count(CustomerRecordCounter)=min(Total &amp;lt;Year&amp;gt;CustomerRecordCounter),
//		Green())
//				)

//If(RangeMax(CustomerRecordCounter), Red())


//IF(Sum([CustomerRecordCounter])=RANGEMAX(TOP(TOTAL Sum([CustomerRecordCounter]),1,NOOFROWS(TOTAL))),Red())&lt;/LI-CODE&gt;&lt;P&gt;Any ideas to accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599256#M737169</guid>
      <dc:creator>Zwax</dc:creator>
      <dc:date>2024-11-16T03:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Color max and min issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599303#M737170</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;FONT color="#333333"&gt;You can calculate averages, counts, max/min values or sums for numbers in a group. Let's add some colors, to see the difference in these tables better &lt;A href="https://prepaidgiftbalance.net/" target="_self"&gt;&lt;FONT color="#333333"&gt;prepaidgiftbalance&lt;/FONT&gt;&lt;/A&gt;.&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 08:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599303#M737170</guid>
      <dc:creator>Gallagher3Y</dc:creator>
      <dc:date>2019-07-05T08:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Color max and min issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599745#M737171</link>
      <description>&lt;P&gt;So I'm a bit further now...&lt;/P&gt;&lt;P&gt;Solved it by the following expression in background color:&lt;/P&gt;&lt;P&gt;If(count(distinct CustomerRecordCounter) = Max(total&amp;lt;Year&amp;gt;Aggr(count(distinct CustomerRecordCounter), Year, Month)), LightRed()&lt;BR /&gt;,If(count(distinct CustomerRecordCounter) = Min(total&amp;lt;Year&amp;gt;Aggr(count(distinct CustomerRecordCounter), Year, Month)), LightGreen()&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;In my test-data it works great. Highlights min and max as wanted.&lt;/P&gt;&lt;P&gt;However, when I move on to some other data the min function stops working. Max still gives me what I want. My guess would be that it is somehow related to null values, but I'm not sure.&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Not sure what logic to put where if it's related to null values&lt;/P&gt;&lt;P&gt;....or if it is an entirely different issue.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 07:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1599745#M737171</guid>
      <dc:creator>Zwax</dc:creator>
      <dc:date>2019-07-08T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Color max and min issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1600208#M737172</link>
      <description>&lt;P&gt;Solved it by adding logic to avoid null values:&lt;/P&gt;&lt;P&gt;If(count(CustomerRecordCounter) = Max(total&amp;lt;Year&amp;gt;Aggr(count(CustomerRecordCounter), Year, Month)), LightRed()&lt;BR /&gt;,If(count(&lt;STRONG&gt;{&amp;lt; [CustomerRecordCounter] = {'&amp;lt;&amp;gt;0'} &amp;gt;}&lt;/STRONG&gt; [CustomerRecordCounter]) = Min(total&amp;lt;Year&amp;gt;Aggr(count(&lt;STRONG&gt;{&amp;lt; [CustomerRecordCounter] = {'&amp;lt;&amp;gt;0'} &amp;gt;}&lt;/STRONG&gt; [CustomerRecordCounter]), Year, Month)), LightGreen()&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 06:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Color-max-and-min-issue/m-p/1600208#M737172</guid>
      <dc:creator>Zwax</dc:creator>
      <dc:date>2019-07-09T06:31:17Z</dc:date>
    </item>
  </channel>
</rss>

