<?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 Can chart calculated colours be affected by dimensions? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182770#M48261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a pie chart with one dimension and two expressions:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Dimension: A product group set&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Expression1: &lt;I&gt;Sum(sales)&lt;/I&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; So the size of each portion is the weight of each product group.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Expression2: &lt;I&gt;Sum({$&amp;lt;Year={$(ThisYear)}&amp;gt;} Sales} / Sum({$&amp;lt;Year={$(LastYear)}&amp;gt;} Sales} - 1&lt;/I&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;I&gt;&lt;/I&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; So the expression shows a number next to the portion with the trend.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;Now I want the colour of each portion to turn red or green according to the sign of its trend.&lt;/P&gt;&lt;P&gt;For what I've seen, the calculated base colour is not affected by the dimension.&lt;/P&gt;&lt;P&gt;So, is there any method to do that?&lt;/P&gt;&lt;P&gt;The final result should be similar to these pictures:&lt;/P&gt;&lt;P&gt;http://www.mactropolis.com/images/blog/bloomberg-iphone3.jpg&lt;/P&gt;&lt;P&gt;http://images.macworld.com/images/reviews/graphics/134571-drilldownb.jpg&lt;/P&gt;&lt;P&gt;Thank you for your time! [:)]&lt;/P&gt;&lt;P&gt;Josep&lt;/P&gt;&lt;P&gt;PD: What I've done for the moment is order the portion by product group (A-&amp;gt;Z) so the order will always be the same, and then adapt each colour filtering for each product group value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jun 2010 18:11:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-09T18:11:16Z</dc:date>
    <item>
      <title>Can chart calculated colours be affected by dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182770#M48261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a pie chart with one dimension and two expressions:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Dimension: A product group set&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Expression1: &lt;I&gt;Sum(sales)&lt;/I&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; So the size of each portion is the weight of each product group.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Expression2: &lt;I&gt;Sum({$&amp;lt;Year={$(ThisYear)}&amp;gt;} Sales} / Sum({$&amp;lt;Year={$(LastYear)}&amp;gt;} Sales} - 1&lt;/I&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;I&gt;&lt;/I&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; So the expression shows a number next to the portion with the trend.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;Now I want the colour of each portion to turn red or green according to the sign of its trend.&lt;/P&gt;&lt;P&gt;For what I've seen, the calculated base colour is not affected by the dimension.&lt;/P&gt;&lt;P&gt;So, is there any method to do that?&lt;/P&gt;&lt;P&gt;The final result should be similar to these pictures:&lt;/P&gt;&lt;P&gt;http://www.mactropolis.com/images/blog/bloomberg-iphone3.jpg&lt;/P&gt;&lt;P&gt;http://images.macworld.com/images/reviews/graphics/134571-drilldownb.jpg&lt;/P&gt;&lt;P&gt;Thank you for your time! [:)]&lt;/P&gt;&lt;P&gt;Josep&lt;/P&gt;&lt;P&gt;PD: What I've done for the moment is order the portion by product group (A-&amp;gt;Z) so the order will always be the same, and then adapt each colour filtering for each product group value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 18:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182770#M48261</guid>
      <dc:creator />
      <dc:date>2010-06-09T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Can chart calculated colours be affected by dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182771#M48262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set this at the first expression´s (+) sign, Background color option.&lt;/P&gt;&lt;P&gt;The expression will be something like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(EXPRESSION2&amp;lt;0,red(),green())&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 21:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182771#M48262</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-09T21:12:36Z</dc:date>
    </item>
    <item>
      <title>Can chart calculated colours be affected by dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182772#M48263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See?&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2844.chart.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2844.chart.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 21:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182772#M48263</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-09T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Can chart calculated colours be affected by dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182773#M48264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Surprise" src="http://community.qlik.com/emoticons/emotion-3.gif" /&gt;&lt;/P&gt;&lt;P&gt;Now it seems so simple...&lt;/P&gt;&lt;P&gt;Thank you Fernando!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 10:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-chart-calculated-colours-be-affected-by-dimensions/m-p/182773#M48264</guid>
      <dc:creator />
      <dc:date>2010-06-10T10:06:40Z</dc:date>
    </item>
  </channel>
</rss>

