<?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: Color in QlikSense Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1720717#M54809</link>
    <description>&lt;P&gt;ColorMix2( (hrank(total (sum({}Year)-1)'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country))) /(sum(total &amp;lt;Country&amp;gt;{}Year)-1)'}&amp;gt;}aggr(sum(Units), Year, Country))) )/(NoOfColumns(TOTAL)/2))-1, rgb(68,119,170), rgb(255,0,0), rgb(144,202,249))&lt;/P&gt;&lt;P&gt;I did this and it seems like it is working. Not exactly the way I want it to but it is ranking the values and coloring them accordingly. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you very much for your help!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 07:26:25 GMT</pubDate>
    <dc:creator>ShellyG</dc:creator>
    <dc:date>2020-06-22T07:26:25Z</dc:date>
    <item>
      <title>Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719103#M54630</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have an issue with the font color in a pivot table. The pivot table basically has countries as rows and years as columns. I have the below calculation, which I am using to calculate growth in forecast:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;BR /&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&lt;/P&gt;&lt;P&gt;The results in the pivot table is in percentages and they go from 0 to approximately 120%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a gradient font color for the percentages to be something like from 0 to 35% - dark red, from 35% to 65% - light red, from 65% to 100% - light blue and above 100% - dark blue&lt;/P&gt;&lt;P&gt;Basically I need to pain the numbers in the pivot table gradually from red to blue. I tried with colormix but it doesn't seem to work. Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shelly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719103#M54630</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2024-11-16T18:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719167#M54639</link>
      <description>&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&amp;gt;=Num(0, '#,#0%') and (sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&amp;lt;=Num(0.35, '#,#0%'), DarkRed(), &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If((sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&amp;gt;Num(0.35, '#,#0%') and (sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&amp;lt;=Num(0.65, '#,#0%'), LightRed(), &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If((sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&amp;gt;Num(0.65, '#,#0%') and (sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&amp;lt;=Num(1, '##0%'), LightBlue(), DarkBlue())))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 10:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719167#M54639</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-06-16T10:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719175#M54641</link>
      <description>&lt;P&gt;Hello Anil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried, but all the numbers go blue...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 10:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719175#M54641</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2020-06-16T10:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719222#M54648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with fixed color try this expression below&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you want tu use colormix function to get a gradiant color you will have to use if () function for each step of your range using rvb() function and consider the max color of a step as the min color of the next step&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;='100%' ,lightblue() ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;= '65%' , lightred() ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(sum({&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/(sum(total &amp;lt;Country&amp;gt;{&amp;lt;Year = {'$(=max(Year))'}&amp;gt;}aggr(sum(Units), Year, Country)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;= '35%' , red() , blue() )))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 11:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719222#M54648</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2020-06-16T11:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719316#M54663</link>
      <description>&lt;P&gt;Hello Bruno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried but it doesn't seem to work properly.... All numbers are painted in blue still... Maybe it has something to do with the number formatting, so I tried different variations, but still nothing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me an advice on how to use the other option you mentioned, the rvb()?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 14:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719316#M54663</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2020-06-16T14:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719349#M54665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at this link&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents-Videos/Qlik-Sense-Color-Range-Theme-Approach/ta-p/1491028" target="_self"&gt;Qlik-Sense-Color-Range-Theme-Approach&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it may help you on how to use colormix1 and colormix2 in pivot table&amp;nbsp;&lt;/P&gt;&lt;P&gt;colormix 1 will give you a shade between 2 colors ( min value = 0 ; and max value = 1 )&amp;nbsp;&lt;/P&gt;&lt;P&gt;colormix2 give the same but with 3 colors between min value =-1 , 0 = median, +1 = max value per column&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read a post longtime ago about a solution to use colormix1 function with if statement to create a range ( for example less then 100% less than 60% , less than 30 % ) it sounded very well but very difficult to reproduce. I will try again if i can found it in the forum&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 16:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1719349#M54665</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2020-06-16T16:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Color in QlikSense Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1720717#M54809</link>
      <description>&lt;P&gt;ColorMix2( (hrank(total (sum({}Year)-1)'}&amp;gt;}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country))) /(sum(total &amp;lt;Country&amp;gt;{}Year)-1)'}&amp;gt;}aggr(sum(Units), Year, Country))) )/(NoOfColumns(TOTAL)/2))-1, rgb(68,119,170), rgb(255,0,0), rgb(144,202,249))&lt;/P&gt;&lt;P&gt;I did this and it seems like it is working. Not exactly the way I want it to but it is ranking the values and coloring them accordingly. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you very much for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-in-QlikSense-Pivot-Table/m-p/1720717#M54809</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2020-06-22T07:26:25Z</dc:date>
    </item>
  </channel>
</rss>

