<?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 coding and rounding in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/color-coding-and-rounding/m-p/1321602#M409463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dashboard with many tables of calculated variances. These are configured to display as red if negative, green if positive, but in the case of zero value, I am displaying&amp;nbsp; values like "-0%" in red or "0%" in green when the desired behavior is to display "0%" in black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The display color is calculated in the Text Color property of the expression, which basically consists of a copy/paste of the expression definition which is long and complicated due to the fact that we are reporting different metrics, different precisions, etc. on each row, but something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( calculation &amp;lt; 0, RGB(255,0,0), RGB(0,127,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two problems to solve: 1) "-0" and 2) the color black&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to handle this...using round(), num(), etc.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2017 19:36:10 GMT</pubDate>
    <dc:creator>daveatkins</dc:creator>
    <dc:date>2017-03-31T19:36:10Z</dc:date>
    <item>
      <title>color coding and rounding</title>
      <link>https://community.qlik.com/t5/QlikView/color-coding-and-rounding/m-p/1321602#M409463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dashboard with many tables of calculated variances. These are configured to display as red if negative, green if positive, but in the case of zero value, I am displaying&amp;nbsp; values like "-0%" in red or "0%" in green when the desired behavior is to display "0%" in black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The display color is calculated in the Text Color property of the expression, which basically consists of a copy/paste of the expression definition which is long and complicated due to the fact that we are reporting different metrics, different precisions, etc. on each row, but something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( calculation &amp;lt; 0, RGB(255,0,0), RGB(0,127,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two problems to solve: 1) "-0" and 2) the color black&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to handle this...using round(), num(), etc.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/color-coding-and-rounding/m-p/1321602#M409463</guid>
      <dc:creator>daveatkins</dc:creator>
      <dc:date>2017-03-31T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: color coding and rounding</title>
      <link>https://community.qlik.com/t5/QlikView/color-coding-and-rounding/m-p/1321603#M409464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Color&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Round(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;calculation&lt;/SPAN&gt;) = 0, Black(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(calculation &amp;lt; 0, RGB(255,0,0), RGB(0,127,0)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Round(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;calculation&lt;/SPAN&gt;) = 0, 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;calculation&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/color-coding-and-rounding/m-p/1321603#M409464</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-31T19:51:43Z</dc:date>
    </item>
  </channel>
</rss>

