<?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 Color Bar Chart by calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-Bar-Chart-by-calculated-dimension/m-p/1008146#M526100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a little coloring problem within one of my bar charts. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107624_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My Dimension definition looks like:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14488890601043190 jive_text_macro" jivemacro_uid="_14488890601043190"&gt;
&lt;P&gt;=If(DATEDIFFERENCE &amp;gt;=20,dual('20 or more',20),If(DATEDIFFERENCE &amp;lt; -5,dual('-6 or less',-6),dual(DATEDIFFERENCE,DATEDIFFERENCE)))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my backgroundcolor definition on my expression states:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_144888921506780" jivemacro_uid="_144888921506780"&gt;
&lt;P&gt;If(DATEDIFFERENCE &amp;lt;= 0,Green(),Red())&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly "-6 or less" is colored red, although I want it to be colored green. Everything else works just fine. Has anyone an idea, how to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2015 13:16:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-30T13:16:05Z</dc:date>
    <item>
      <title>Color Bar Chart by calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Bar-Chart-by-calculated-dimension/m-p/1008146#M526100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a little coloring problem within one of my bar charts. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107624_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My Dimension definition looks like:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14488890601043190 jive_text_macro" jivemacro_uid="_14488890601043190"&gt;
&lt;P&gt;=If(DATEDIFFERENCE &amp;gt;=20,dual('20 or more',20),If(DATEDIFFERENCE &amp;lt; -5,dual('-6 or less',-6),dual(DATEDIFFERENCE,DATEDIFFERENCE)))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my backgroundcolor definition on my expression states:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_144888921506780" jivemacro_uid="_144888921506780"&gt;
&lt;P&gt;If(DATEDIFFERENCE &amp;lt;= 0,Green(),Red())&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly "-6 or less" is colored red, although I want it to be colored green. Everything else works just fine. Has anyone an idea, how to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 13:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Bar-Chart-by-calculated-dimension/m-p/1008146#M526100</guid>
      <dc:creator />
      <dc:date>2015-11-30T13:16:05Z</dc:date>
    </item>
  </channel>
</rss>

