<?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 Multiple Colours within One Expression within a Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Colours-within-One-Expression-within-a-Chart/m-p/408181#M561950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change the colour of data calculated by one expression using the following if Statement within the Text Colour dimension so that depending on the Sales Status of a Plot the calculated data is a different colour. It doesn't work the problem being because the data is held within a single cell and so it changes the text colour all to one colour. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if([Sales Status Code]='R', Green()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if([Sales Status Code]='U', Blue()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if([Sales Status Code]= 'NR', Yellow()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if([Sales Status Code]= 'C', lightred()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, if([Sales Status Code]='E', LightCyan(), Black() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The Expression I am using is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'C', 'NR', 'U', 'E', 'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The Dimesion is:&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Site and Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;It is difficult to explain so I have attached a mock up of what I wish to achieve. I have only managed to achieve this by using 5 layered charts and changing the expression to sum depending on the Sales Status and changing the Text Colour of each seperate chart to a specified colour e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Chart 1&lt;/SPAN&gt; - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 2 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 3 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 4 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 5 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I cannot have the Sales Status as a seperate Dimension or as Seperate Expressions within the same chart because it makes the chart far too large and almost unusable. I also cannot use the Layered chart method as the table is not a fixed size and you will need to scroll which doesn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please can advise if this is possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nikki &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 11:25:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-05T11:25:31Z</dc:date>
    <item>
      <title>Multiple Colours within One Expression within a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Colours-within-One-Expression-within-a-Chart/m-p/408181#M561950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change the colour of data calculated by one expression using the following if Statement within the Text Colour dimension so that depending on the Sales Status of a Plot the calculated data is a different colour. It doesn't work the problem being because the data is held within a single cell and so it changes the text colour all to one colour. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if([Sales Status Code]='R', Green()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if([Sales Status Code]='U', Blue()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if([Sales Status Code]= 'NR', Yellow()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if([Sales Status Code]= 'C', lightred()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, if([Sales Status Code]='E', LightCyan(), Black() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The Expression I am using is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'C', 'NR', 'U', 'E', 'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The Dimesion is:&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Site and Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;It is difficult to explain so I have attached a mock up of what I wish to achieve. I have only managed to achieve this by using 5 layered charts and changing the expression to sum depending on the Sales Status and changing the Text Colour of each seperate chart to a specified colour e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Chart 1&lt;/SPAN&gt; - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 2 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 3 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 4 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chart 5 - &lt;/SPAN&gt;sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Status Code &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'R'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Count Plot]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I cannot have the Sales Status as a seperate Dimension or as Seperate Expressions within the same chart because it makes the chart far too large and almost unusable. I also cannot use the Layered chart method as the table is not a fixed size and you will need to scroll which doesn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please can advise if this is possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nikki &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 11:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Colours-within-One-Expression-within-a-Chart/m-p/408181#M561950</guid>
      <dc:creator />
      <dc:date>2013-03-05T11:25:31Z</dc:date>
    </item>
  </channel>
</rss>

