<?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: Format negative number as red and in brackets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32297#M5447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;I am actually presenting the numbers in NPrinting Powerpoint&lt;/P&gt;&lt;P&gt;The below gave me in QV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vEndPeriod_CY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pl&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {F01}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IS_Investment_GBP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) +500000,1000000)/1000000 *-1 ) ,'#,##0;(#,##0)') &lt;BR /&gt; &lt;BR /&gt; &amp;lt; 0.0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&lt;BR /&gt; &lt;BR /&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193552_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 16:18:34 GMT</pubDate>
    <dc:creator>paul_ripley</dc:creator>
    <dc:date>2018-02-15T16:18:34Z</dc:date>
    <item>
      <title>Format negative number as red and in brackets</title>
      <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32293#M5443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have an expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vEndPeriod_CY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pl&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {F01}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IS_Investment_GBP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) +500000,1000000)/1000000 *-1 ) ,'#,##0;(#,##0)') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;that I would like to format negative number as red and in brackets and positive as green and no brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get it to show the brackets as above but I don't know how to show red or green.&lt;/P&gt;&lt;P&gt;Could anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32293#M5443</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2018-02-15T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Format negative number as red and in brackets</title>
      <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32294#M5444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the left of the Expressions tab, expand the tree of this particular expression. The subtree has a leaf called "Text Color". Enter something like this to get a correct color:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF (&lt;EM&gt;expression&lt;/EM&gt; &amp;lt; 0.0, red(), green())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where you replace &lt;EM&gt;expression&lt;/EM&gt; with the first parameter of your &lt;SPAN style="font-family: 'courier new', courier;"&gt;Num()&lt;/SPAN&gt; call in your original post. You don't need to repeat the formatting itself, because that doesn't matter for selecitng a color.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32294#M5444</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-15T16:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Format negative number as red and in brackets</title>
      <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32295#M5445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that you can also enter the format string of your expressions Num() call in the Format Pattern field for this expression on the Properties-&amp;gt;Number tab. After that, you can just omit the formatting in the expression itself. Keeps expressions less complex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32295#M5445</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-15T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Format negative number as red and in brackets</title>
      <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32296#M5446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming that your expression occurs in a Chart/Table. If you put this in a simple text box, then indeed there is no expression tab or an expression tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you can use the same technique as I explained before to set the text Font color in the Font tab. Click the Font-&amp;gt;Color button, select Base Color = Calculated and enter the expression in the expression field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One minor disadvantage: all other text in your text box changes color too...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32296#M5446</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-15T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Format negative number as red and in brackets</title>
      <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32297#M5447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;I am actually presenting the numbers in NPrinting Powerpoint&lt;/P&gt;&lt;P&gt;The below gave me in QV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vEndPeriod_CY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pl&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {F01}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IS_Investment_GBP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) +500000,1000000)/1000000 *-1 ) ,'#,##0;(#,##0)') &lt;BR /&gt; &lt;BR /&gt; &amp;lt; 0.0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&lt;BR /&gt; &lt;BR /&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193552_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32297#M5447</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2018-02-15T16:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Format negative number as red and in brackets</title>
      <link>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32298#M5448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok.&amp;nbsp; I can see what you are doing .&amp;nbsp; Thanks for your help.&amp;nbsp; I'll have to think how to incorporate this into my report&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-negative-number-as-red-and-in-brackets/m-p/32298#M5448</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2018-02-15T16:23:36Z</dc:date>
    </item>
  </channel>
</rss>

