<?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: Row Level Conditional Colouring in Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940821#M77545</link>
    <description>&lt;P&gt;Thanks this worked perfectly!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 08:39:23 GMT</pubDate>
    <dc:creator>Vishal_Gupta</dc:creator>
    <dc:date>2022-06-08T08:39:23Z</dc:date>
    <item>
      <title>Row Level Conditional Colouring in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1938935#M77382</link>
      <description>&lt;P&gt;Hi Fellow Qlik Members,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement from customer that they want to see conditional colouring based on Row Level and not on Column level.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="GuptaVishal1404_0-1654169703298.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80890i80E2135EEAE83FB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="GuptaVishal1404_0-1654169703298.png" alt="GuptaVishal1404_0-1654169703298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can in the above screenshot Zone A in Slab 100-250 is having a value of 17 but still showing red, whereas Slab 500-1000 is having value 4 with color assigned green.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expressions:&lt;/P&gt;
&lt;P&gt;Dimension: &lt;EM&gt;Customer Zone&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Measure:&amp;nbsp;&lt;EM&gt;Count(distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code])&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Background Colour Expression:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ColorMix2((rank(total(Count(distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code])&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;))/(noofrows(TOTAL)/2))-1 ,rgb(255,239,0),lightred('150'),lightgreen('150'))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone let me know what can i do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 11:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1938935#M77382</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2022-06-02T11:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Conditional Colouring in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1939088#M77401</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your ranking is only happening within the columns of the pivot table.&lt;/P&gt;
&lt;P&gt;So &amp;gt;1000 they are all the middle green as all have same rank. 100-250 17 is red as is lowest in that column, 500-1000 4 is the bright green as is highest.&lt;/P&gt;
&lt;P&gt;So I think below gives you the rank across all;&lt;/P&gt;
&lt;P&gt;Aggr(Rank(total Count(Distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code])),&lt;STRONG&gt;COLUMNDIM&lt;/STRONG&gt;,[Customer Zone])&lt;/P&gt;
&lt;P&gt;(Where COLUMNDIM is the column dimension - not sure what that is).&lt;/P&gt;
&lt;P&gt;But then you need to work out how to split this down into your three colours ... as this will run from 1-21 (or so).&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1939088#M77401</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-06-02T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Conditional Colouring in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1939239#M77423</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;=ColorMix2( (aggr(&lt;EM&gt;rank(Count(distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code])&lt;/EM&gt;),[Customer Zone],&lt;STRONG&gt;ColumnDIM&lt;/STRONG&gt;)/ count(distinct total [&lt;STRONG&gt;ColumnDim&lt;/STRONG&gt;])) ,rgb(255,239,0),lightred(150),lightgreen(150))&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ColorMix2( &lt;STRONG&gt;HRANK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;(Count(distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code])&lt;/EM&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;/ count(distinct total [&lt;/SPAN&gt;&lt;STRONG&gt;ColumnDim&lt;/STRONG&gt;&lt;SPAN&gt;])) ,rgb(255,239,0),lightred(150),lightgreen(150))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;replace&amp;nbsp;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;STRONG&gt;ColumnDim&lt;/STRONG&gt;&lt;SPAN&gt;]&amp;nbsp; with your column dimension name&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 03:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1939239#M77423</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-06-03T03:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Conditional Colouring in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940653#M77528</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28968"&gt;@chrismarlow&lt;/a&gt;&amp;nbsp; Thanks for replying&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28968"&gt;@chrismarlow&lt;/a&gt;&amp;nbsp;your expression doesn't seem to work even after some modification.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp;your 1st expression is working for me but now the row level total is behaving a little strange&lt;/P&gt;
&lt;P&gt;For Example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="GuptaVishal1404_2-1654638571365.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81192i0CAC758F92661ED2/image-size/large?v=v2&amp;amp;px=999" role="button" title="GuptaVishal1404_2-1654638571365.png" alt="GuptaVishal1404_2-1654638571365.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 21:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940653#M77528</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2022-06-07T21:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Conditional Colouring in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940672#M77531</link>
      <description>&lt;P&gt;try&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=if(rowno()&amp;lt;&amp;gt;0,
colormix2(hrank(Count(distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code]),4,1)/NoOfColumns(TOTAL)
,rgb(255,239,0),lightred(150),lightgreen(150))
)&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=if(rowno()&amp;lt;&amp;gt;0,
colormix2(aggr(rank(Count(distinct {&amp;lt;[Current Fiscal Year Total Sales]-={0}&amp;gt;} [Customer Code]),4,1),[Customer Zone],[ColumnDimHere])/NoOfColumns(TOTAL)
,rgb(255,239,0),lightred(150),lightgreen(150))
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 02:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940672#M77531</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-06-08T02:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Conditional Colouring in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940821#M77545</link>
      <description>&lt;P&gt;Thanks this worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Row-Level-Conditional-Colouring-in-Pivot-Table/m-p/1940821#M77545</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2022-06-08T08:39:23Z</dc:date>
    </item>
  </channel>
</rss>

