<?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 Background colour in pivot table based on expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-colour-in-pivot-table-based-on-expression/m-p/738375#M537380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this dummy data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 105&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95&lt;/P&gt;&lt;P&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do the following thing with it: I want every number in the Price column to have a background color code as follows:&lt;/P&gt;&lt;P&gt;100 should be green for being the first number in the column&lt;/P&gt;&lt;P&gt;105 should be green because it's in the firstNumber (100 in this case)*0.95 and firstNumber*1.05 range&lt;/P&gt;&lt;P&gt;95 should be green because it's in the firstNumber*0.95 and firstNumber*1.05 range&lt;/P&gt;&lt;P&gt;80 should be red because it's not in the range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a pivot table. Also, I've tried with if(Price&amp;lt;First/Top(Price)*1.05 and Price&amp;gt;First/Top(Price)*0.95, green(), red()) but didn't get the desired result. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I have the free version so I cannot open qvw files, so please try to explain your answer by writing, not attaching a file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 09:50:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-16T09:50:23Z</dc:date>
    <item>
      <title>Background colour in pivot table based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-in-pivot-table-based-on-expression/m-p/738375#M537380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this dummy data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 105&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95&lt;/P&gt;&lt;P&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do the following thing with it: I want every number in the Price column to have a background color code as follows:&lt;/P&gt;&lt;P&gt;100 should be green for being the first number in the column&lt;/P&gt;&lt;P&gt;105 should be green because it's in the firstNumber (100 in this case)*0.95 and firstNumber*1.05 range&lt;/P&gt;&lt;P&gt;95 should be green because it's in the firstNumber*0.95 and firstNumber*1.05 range&lt;/P&gt;&lt;P&gt;80 should be red because it's not in the range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a pivot table. Also, I've tried with if(Price&amp;lt;First/Top(Price)*1.05 and Price&amp;gt;First/Top(Price)*0.95, green(), red()) but didn't get the desired result. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I have the free version so I cannot open qvw files, so please try to explain your answer by writing, not attaching a file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 09:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-in-pivot-table-based-on-expression/m-p/738375#M537380</guid>
      <dc:creator />
      <dc:date>2014-10-16T09:50:23Z</dc:date>
    </item>
  </channel>
</rss>

