<?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 Calculating Base Colors For A Block Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Base-Colors-For-A-Block-Chart/m-p/164056#M36895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to assign colors in a block chart based on a completion %. I am trying to calculate the base color using an "if" statement. QV seems to be ignoring the "if" statement and is using the "fixed color" that is assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Mar 2010 21:53:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-01T21:53:20Z</dc:date>
    <item>
      <title>Calculating Base Colors For A Block Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Base-Colors-For-A-Block-Chart/m-p/164056#M36895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to assign colors in a block chart based on a completion %. I am trying to calculate the base color using an "if" statement. QV seems to be ignoring the "if" statement and is using the "fixed color" that is assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 21:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Base-Colors-For-A-Block-Chart/m-p/164056#M36895</guid>
      <dc:creator />
      <dc:date>2010-03-01T21:53:20Z</dc:date>
    </item>
    <item>
      <title>Calculating Base Colors For A Block Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Base-Colors-For-A-Block-Chart/m-p/164057#M36896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this can be done, I had a similar question answered this morning regarding setting colours in charts. Adding a condition was just an easy touch once I had the idea/code from John WItherspoon.&lt;/P&gt;&lt;P&gt;This is the link to my post - There is a file uploaded by John that I found helpful to determine coding colours.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/26208/100548.aspx#100548"&gt;http://community.qlik.com/forums/p/26208/100548.aspx#100548&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So as you can see you can set your colours using the&lt;/P&gt;&lt;P&gt;pick(match("Bus Grp",'AA','AFAP',...),blue(),red(),...)&lt;/P&gt;&lt;P&gt;This can then be preceded by an 'If' statement and inserted into the Background Colour field of your expression.&lt;/P&gt;&lt;P&gt;If([Profit]&amp;gt;0, pick(match("Bus Grp",'AA'),green(),pick(match("Bus Grp",'AA'),red())&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit - I can see my solution becoming very messy with multiple fields. I use 7 different 'Bus Grp's and repeating the 7 in each If,Then,Else combo does get to be a long string of code... Is there someway to simplify?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 06:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Base-Colors-For-A-Block-Chart/m-p/164057#M36896</guid>
      <dc:creator />
      <dc:date>2010-03-02T06:07:50Z</dc:date>
    </item>
  </channel>
</rss>

