<?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: Dynamic Bar color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892879#M1007698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@hi Sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my understanding&lt;/P&gt;&lt;P&gt;you point is -&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if the agent has sold more than average of all agents, makes the bar green. Otherwise, make it red (Regardless of active filter).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(agent&amp;gt;Avg{1[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Selling Price]&lt;/SPAN&gt;},Green,red)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;share sample data for required o/p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 07:19:53 GMT</pubDate>
    <dc:creator>sunilkumarqv</dc:creator>
    <dc:date>2015-05-07T07:19:53Z</dc:date>
    <item>
      <title>Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892878#M1007697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sales table which has 2 columns of total amount and selling agent. I also have a diagram which shows agents and their sum of selling.&lt;/P&gt;&lt;P&gt;I want to put an expression in background color which:&lt;/P&gt;&lt;P&gt;if the agent has sold more than average of all agents, makes the bar green. Otherwise, make it red (Regardless of active filter).&lt;/P&gt;&lt;P&gt;=If(Avg({1}[Selling Price])&amp;gt;&amp;gt; [Selling Price], RGB(128,255,0), RGB(255,0,0))&lt;/P&gt;&lt;P&gt;my changes the color when I change the current selection (filter).&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892878#M1007697</guid>
      <dc:creator />
      <dc:date>2015-05-07T07:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892879#M1007698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@hi Sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my understanding&lt;/P&gt;&lt;P&gt;you point is -&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if the agent has sold more than average of all agents, makes the bar green. Otherwise, make it red (Regardless of active filter).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(agent&amp;gt;Avg{1[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Selling Price]&lt;/SPAN&gt;},Green,red)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;share sample data for required o/p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892879#M1007698</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-05-07T07:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892880#M1007699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly as you explained. e.g. I want to see if Martin has sold more than average of all agents change the bar to green otherwise red like brad. But as you can see my expression doesn't respond properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Avg({1}[Selling Price])&amp;gt;&amp;gt;[Selling Price], RGB(255,0,0), RGB(128,255,0))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85896_Capture.PNG" style="height: 413px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892880#M1007699</guid>
      <dc:creator />
      <dc:date>2015-05-07T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892881#M1007700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may have to use the calculation in reverse order ie., If selling price &amp;gt; avg {1} selling price, green(), red().&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 08:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892881#M1007700</guid>
      <dc:creator>santhoo_san</dc:creator>
      <dc:date>2015-05-07T08:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892882#M1007701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Avg(TOTAL [Selling Price])&amp;gt;[Selling Price], RGB(255,0,0), RGB(128,255,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 08:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892882#M1007701</guid>
      <dc:creator>mrossoit</dc:creator>
      <dc:date>2015-05-07T08:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892883#M1007702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;this is an example&amp;nbsp; of&amp;nbsp; how I did it then try to do like i did maybe it can work for you too&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85907_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/85908_Capture1.PNG" style="height: 506px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;you can replace Sum(#) and 25000 with your expressions&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 08:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892883#M1007702</guid>
      <dc:creator />
      <dc:date>2015-05-07T08:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892884#M1007703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sep,&lt;/P&gt;&lt;P&gt;You can Use RangeAvg() Function&lt;/P&gt;&lt;P&gt;If(RangeAvg(Top([Selling Price],1,NoOfRows())) &amp;gt; [Selling Price],Red(),Green())&lt;/P&gt;&lt;P&gt;or Sum([Selling Price]) if Your expression is Sum([Selling Price])&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 09:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892884#M1007703</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-05-07T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892885#M1007704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is I want the qlikview to calculate the average. Take a look at this formula:&lt;BR /&gt;If(Sum({1} [Selling Price]) &amp;gt; (Sum({1}[Selling Price])/Count({1}[Agent Name])), RGB(0,0,0), RGB(255,255,255))&lt;BR /&gt;what is it I'm missing?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892885#M1007704</guid>
      <dc:creator />
      <dc:date>2015-05-11T07:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892886#M1007705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio Mancini it's not working. Can you please point out what is the problem with above expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892886#M1007705</guid>
      <dc:creator />
      <dc:date>2015-05-11T07:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892887#M1007706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Nope I want to calculate average selling by agents, Like following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;If(Sum({1} [Selling Price]) &amp;gt; (Sum({1}[Selling Price])/Count({1}[Agent Name])), RGB(0,0,0), RGB(255,255,255))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892887#M1007706</guid>
      <dc:creator />
      <dc:date>2015-05-11T07:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892888#M1007707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but I don't understand.&lt;/P&gt;&lt;P&gt;You told "I want to see if Martin has sold more than average of all agents change the bar to green otherwise red".&lt;/P&gt;&lt;P&gt;Check out my sample please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892888#M1007707</guid>
      <dc:creator>mrossoit</dc:creator>
      <dc:date>2015-05-11T07:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bar color</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892889#M1007708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to calculate avg sales you have to use the total qualifier as mentioned by Massimiliano Rosso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 08:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Bar-color/m-p/892889#M1007708</guid>
      <dc:creator />
      <dc:date>2015-05-11T08:24:53Z</dc:date>
    </item>
  </channel>
</rss>

