<?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: Set Color for Negative Variations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Color-for-Negative-Variations/m-p/1533408#M746782</link>
    <description>&lt;P&gt;Maybe just change your&amp;nbsp;expression to set the color:&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN&gt;SalesCY &amp;gt; SalesLY , Green(), Red())&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jan 2019 15:34:08 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2019-01-22T15:34:08Z</dc:date>
    <item>
      <title>Set Color for Negative Variations</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Color-for-Negative-Variations/m-p/1533376#M746781</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following expression for the Last Year Variation:&lt;/P&gt;&lt;P&gt;SalesCY / SalesLY - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works perfectly and I use the this expression to set the color:&lt;/P&gt;&lt;P&gt;IF ((&lt;SPAN&gt;SalesCY / SalesLY - 1) &amp;gt; 0, Green(), Red())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The thing is that I have a case where:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;SalesCY are -800&lt;/U&gt; and&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;SalesLY are -250&lt;/U&gt;&lt;/P&gt;&lt;P&gt;So the&amp;nbsp;Last Year Variation shows me around 220% in Green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is that it should be in Red, because Current Year (-800) are worse than Last Year (-250).&lt;/P&gt;&lt;P&gt;Is there any way to fix that? (Please note that I have positive values for Sales too, so it should work for both)&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Color-for-Negative-Variations/m-p/1533376#M746781</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Color for Negative Variations</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Color-for-Negative-Variations/m-p/1533408#M746782</link>
      <description>&lt;P&gt;Maybe just change your&amp;nbsp;expression to set the color:&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN&gt;SalesCY &amp;gt; SalesLY , Green(), Red())&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 15:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Color-for-Negative-Variations/m-p/1533408#M746782</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-01-22T15:34:08Z</dc:date>
    </item>
  </channel>
</rss>

