<?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 Bar chart background color based on value not working as expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812144#M534173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason when I try to apply a dynamic background color on a bar chart based on a field it simply doesn't work. I can set it up without problems without conditions, but when I try to do it with an if expression it just doesn't change it. It's like condition is not evaluated at all...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See screenshots below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar chart (kind of a gant) with already &lt;STRONG&gt;Status selection to 'Closed' value&lt;/STRONG&gt;. Also see my chart properties with colour set to red() for Status='Closed' and not happening at all. (if I put red() in background color it all becomes red without problems)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gannt chart.JPG" class="image-1 jive-image" src="/legacyfs/online/78222_gannt chart.JPG" style="height: 314px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Chart properties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="props.JPG" class="jive-image image-2" height="351" src="https://community.qlik.com/legacyfs/online/78223_props.JPG" style="height: 351.377px; width: 399px;" width="399" /&gt;&lt;IMG alt="bg color.JPG" class="jive-image image-3" height="346" src="/legacyfs/online/78224_bg color.JPG" style="height: 346.415px; width: 397px;" width="397" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension is the ChangeID (CRQXXXXX) and my expression is duration of this given CRQ (EndTimestamp - StartTimestamp) in hours.&lt;BR /&gt;This CRQs have different Status (Closed, Started, etc... ) and I would love to change background colour based on it for each bar. (if status is closed, then bar is red, and so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if (Status='Closed', red(), green())&lt;/STRONG&gt;&amp;nbsp; as Background color for expression all bars become green.&lt;/P&gt;&lt;P&gt;BTW I've already seen lots of examples from QV community and found nothing that worked for me. I'm using QV11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas? Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Diego.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS. Also was wondering if it's possible to get bold values on axis based on any other field kind of if status is cancelled the CRQXXX on the axis becomes bold. ¿?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 11:57:42 GMT</pubDate>
    <dc:creator>dpduran</dc:creator>
    <dc:date>2015-02-16T11:57:42Z</dc:date>
    <item>
      <title>Bar chart background color based on value not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812144#M534173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason when I try to apply a dynamic background color on a bar chart based on a field it simply doesn't work. I can set it up without problems without conditions, but when I try to do it with an if expression it just doesn't change it. It's like condition is not evaluated at all...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See screenshots below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar chart (kind of a gant) with already &lt;STRONG&gt;Status selection to 'Closed' value&lt;/STRONG&gt;. Also see my chart properties with colour set to red() for Status='Closed' and not happening at all. (if I put red() in background color it all becomes red without problems)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gannt chart.JPG" class="image-1 jive-image" src="/legacyfs/online/78222_gannt chart.JPG" style="height: 314px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Chart properties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="props.JPG" class="jive-image image-2" height="351" src="https://community.qlik.com/legacyfs/online/78223_props.JPG" style="height: 351.377px; width: 399px;" width="399" /&gt;&lt;IMG alt="bg color.JPG" class="jive-image image-3" height="346" src="/legacyfs/online/78224_bg color.JPG" style="height: 346.415px; width: 397px;" width="397" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension is the ChangeID (CRQXXXXX) and my expression is duration of this given CRQ (EndTimestamp - StartTimestamp) in hours.&lt;BR /&gt;This CRQs have different Status (Closed, Started, etc... ) and I would love to change background colour based on it for each bar. (if status is closed, then bar is red, and so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if (Status='Closed', red(), green())&lt;/STRONG&gt;&amp;nbsp; as Background color for expression all bars become green.&lt;/P&gt;&lt;P&gt;BTW I've already seen lots of examples from QV community and found nothing that worked for me. I'm using QV11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas? Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Diego.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS. Also was wondering if it's possible to get bold values on axis based on any other field kind of if status is cancelled the CRQXXX on the axis becomes bold. ¿?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 11:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812144#M534173</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2015-02-16T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart background color based on value not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812145#M534174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, to solve your problem it would be great for us to have an example file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I see you've got an expression 'Status'. &lt;/P&gt;&lt;P&gt;Is this Status(=Closed) your expression or is Status a field name? &lt;/P&gt;&lt;P&gt;If it's a field name, you should consider renaming your label for the expression "Status".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz,&lt;/P&gt;&lt;P&gt;Fred..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812145#M534174</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-02-16T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart background color based on value not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812146#M534175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know, when you spend so much time trying to do something and you get stuck over and over again trying to solve it.... you pass things like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just changed the Expression label and the condition started being evaluated flawlessly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed a fresh pair of eyes to see this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the quick response Fred. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812146#M534175</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2015-02-16T16:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart background color based on value not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812147#M534176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anytime &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-background-color-based-on-value-not-working-as/m-p/812147#M534176</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-02-16T16:25:23Z</dc:date>
    </item>
  </channel>
</rss>

