<?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 Chart colour depending on dynamic Average value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083717#M360906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am relatively new to QlikView and I have come across an issue that I do not know how to solve.&lt;/P&gt;&lt;P&gt;I have a chart which shows the total number of occurrences. Using a cyclic group, I show the occurrences based on different dimensions for example ( as shown on attached image) total number of occurrences per month and total number of occurrences per week day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the average trendline on the chart and, as expected, it changes for each dimension.&lt;/P&gt;&lt;P&gt;How can I colour the bars with different colours depending if they are above (red) or below (green) the average?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done that in a chart with only one dimension by creating a variable vAvg and on the expression background putting a conditional that changes the colour if the value is higher or lower than that vAgv.&lt;/P&gt;&lt;P&gt;However, how can I do that on this scenario where the Average changes every time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView Question.jpg" class="jive-image image-1" src="/legacyfs/online/116786_QlikView Question.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 13:19:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-03T13:19:25Z</dc:date>
    <item>
      <title>Chart colour depending on dynamic Average value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083717#M360906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am relatively new to QlikView and I have come across an issue that I do not know how to solve.&lt;/P&gt;&lt;P&gt;I have a chart which shows the total number of occurrences. Using a cyclic group, I show the occurrences based on different dimensions for example ( as shown on attached image) total number of occurrences per month and total number of occurrences per week day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the average trendline on the chart and, as expected, it changes for each dimension.&lt;/P&gt;&lt;P&gt;How can I colour the bars with different colours depending if they are above (red) or below (green) the average?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done that in a chart with only one dimension by creating a variable vAvg and on the expression background putting a conditional that changes the colour if the value is higher or lower than that vAgv.&lt;/P&gt;&lt;P&gt;However, how can I do that on this scenario where the Average changes every time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView Question.jpg" class="jive-image image-1" src="/legacyfs/online/116786_QlikView Question.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083717#M360906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Chart colour depending on dynamic Average value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083718#M360907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the function GetCurrentField(GroupName) to know which dimension in the cyclic group is presented in the graph. Unber the expression, you can press the + sign and in the Background color you can add an if statement together with the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;GetCurrentField(GroupName)&amp;nbsp; to give the bar a different color if it is below or above the average, where as the vAvg variable will change according to presented Dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Liat&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 06:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083718#M360907</guid>
      <dc:creator>todtliat01</dc:creator>
      <dc:date>2016-03-09T06:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Chart colour depending on dynamic Average value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083719#M360908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you Liat Todt.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It has worked perfectly.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 14:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-colour-depending-on-dynamic-Average-value/m-p/1083719#M360908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T14:30:56Z</dc:date>
    </item>
  </channel>
</rss>

