<?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: Comparing values across all columns in pivot table. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-values-across-all-columns-in-pivot-table/m-p/20872#M1427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well this works, but I wonder if there's a better way....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangemax(before(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,ColumnNo()),after(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,noofcolumns()-columnno()+1))&lt;/P&gt;&lt;P&gt;-rangemin(before(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,ColumnNo()),after(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,noofcolumns()-columnno()+1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2018 19:10:41 GMT</pubDate>
    <dc:creator>stascher</dc:creator>
    <dc:date>2018-04-11T19:10:41Z</dc:date>
    <item>
      <title>Comparing values across all columns in pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-values-across-all-columns-in-pivot-table/m-p/20871#M1426</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've got the following pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="199315" alt="pivottable.png" class="jive-image image-1" height="115" src="https://community.qlik.com/legacyfs/online/199315_pivottable.png" style="height: 115px; width: 758.511px;" width="759" /&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...for each row, compare the "&lt;STRONG&gt;%of group affected"&lt;/STRONG&gt; value for each Group and if the difference between the highest and lowest &lt;STRONG&gt;"% of group affected"&lt;/STRONG&gt; is &amp;gt;= 50, set the background color of the highest &lt;STRONG&gt;"%of group affected"&lt;/STRONG&gt; in the row to yellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already know how to calculate &lt;STRONG&gt;"%of group affected"&lt;/STRONG&gt; and how to identify when a cell contains the highest or lowest value by using hrank().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is an expression I can use when specifying a&amp;nbsp; cell's background color that will calculate the difference between highest and lowest &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;"%of group affected" &lt;/STRONG&gt;&lt;/SPAN&gt;in the row.&amp;nbsp; I tried using the rangemax() and rangemin() with before() and after() functions but I couldn't get them to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-values-across-all-columns-in-pivot-table/m-p/20871#M1426</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2018-04-11T17:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing values across all columns in pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-values-across-all-columns-in-pivot-table/m-p/20872#M1427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well this works, but I wonder if there's a better way....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangemax(before(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,ColumnNo()),after(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,noofcolumns()-columnno()+1))&lt;/P&gt;&lt;P&gt;-rangemin(before(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,ColumnNo()),after(count(distinct subject)/Aggr(NODISTINCT Count(DISTINCT subject), group),0,noofcolumns()-columnno()+1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 19:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-values-across-all-columns-in-pivot-table/m-p/20872#M1427</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2018-04-11T19:10:41Z</dc:date>
    </item>
  </channel>
</rss>

