<?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: Conditional colour on bar per customer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750800#M267747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Enrique. I have the RGB colour in the expression but it is aggregating on the total for all customers. I need to find a way to look at each customer individually so that the bar colour is green if the value is &amp;gt; 0 and red if not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Nov 2014 16:50:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-02T16:50:31Z</dc:date>
    <item>
      <title>Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750798#M267745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a horizontal bar chart showing green if the number is positive and red if it is negative using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(num(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; Sum ({$&amp;lt;[Ar Transaction Trn Year]={$(=Max([Ar Transaction Trn Year]))},&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; [Ar Transaction Invoice Date] ={"&amp;lt;$(=addyears(max ({$&amp;lt;[Ar Transaction Trn Year]={$(=Max([Ar Transaction Trn Year]))}&amp;gt;}[Ar Transaction Invoice Date])))"} &amp;gt;} [Ar Transaction Net Sales Value])&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ,'£###,###,###.')&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;-&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;num(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; Sum ({$&amp;lt;[Ar Transaction Trn Year]={$(=Max([Ar Transaction Trn Year])-1)},&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; [Ar Transaction Invoice Date] ={"&amp;lt;$(=addyears(max ({$&amp;lt;[Ar Transaction Trn Year]={$(=Max([Ar Transaction Trn Year]))}&amp;gt;}[Ar Transaction Invoice Date]),-1))"} &amp;gt;} [Ar Transaction Net Sales Value])&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; ,'£###,###,###.')&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; &amp;gt; 0, RGB(102,204,102), RGB(255,0,0))&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Currently this performs&amp;nbsp; the calculation using the complete customer base so I only see green because the overall quantity returned is positive. I want it to show green if positive and red if negative for each customer e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer 1 = 100 = Green&lt;/P&gt;&lt;P&gt;Customer 2 = -50 = Red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it is possible because but I don't know whether I need to use aggregation in the calculation to achieve it or if there is a simpler way that I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 10:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750798#M267745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-02T10:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750799#M267746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put the colour in the expresion:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="p09.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70302_p09.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 16:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750799#M267746</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-11-02T16:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750800#M267747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Enrique. I have the RGB colour in the expression but it is aggregating on the total for all customers. I need to find a way to look at each customer individually so that the bar colour is green if the value is &amp;gt; 0 and red if not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 16:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750800#M267747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-02T16:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750801#M267748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need a colour different for the total?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 17:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750801#M267748</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-11-02T17:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750802#M267749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I don't need a total bar I just need bars that look like the attached image with red for - and green for +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="redgreenbars.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70319_redgreenbars.JPG.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 17:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750802#M267749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-02T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750803#M267750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;The expressions in the top are working good?&lt;/P&gt;&lt;P&gt;Canyou upload a example file in order to try with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 17:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750803#M267750</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-11-02T17:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750804#M267751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 17:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750804#M267751</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-11-02T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750805#M267752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jyothish. I have added my chart and I still see only one colour. I'm sure that I'm doing something really stupid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 19:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750805#M267752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-02T19:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750806#M267753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See now, with colour as an option in the expresion (is another option), but the good response is from &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jyothish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 19:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750806#M267753</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-11-02T19:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750807#M267754</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;In your chart expression click on the ( + ) sign and write the expression &lt;/P&gt;&lt;P&gt;if (sum(B)&amp;gt;0,RGB(102,204,102), RGB(255,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 19:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750807#M267754</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-02T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Conditional colour on bar per customer</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750808#M267755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow it was as easy as just changing the background text setting on the expression. I was trying to make it much more complicated. Thanks guys for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 21:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-colour-on-bar-per-customer/m-p/750808#M267755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-02T21:50:33Z</dc:date>
    </item>
  </channel>
</rss>

