<?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: Re: Color for text box expression outcome in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571753#M213018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally missed your responce, either way thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. It was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 10:23:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-13T10:23:10Z</dc:date>
    <item>
      <title>Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571746#M213011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am facing problems giving the outcome of my expression in the textbox the right color. The expression shows the realization compared to the budget in %. I wish to make the percentage outcome &amp;lt;0 red and &amp;gt;0. Until now I couldn't get it done and I am out of inspiration. I hope someone could give me a hand. The statement so far is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num((1-((-sum({&amp;lt;[Categorie]= {'DIENST' } &amp;gt;} [Budget Bedrag] )-sum({&amp;lt;[Categorie]= {'LICENTIE' } &amp;gt;} [Budget Bedrag] )-sum({&amp;lt;[Categorie]= {'ONDERHOUD' } &amp;gt;} [Budget Bedrag] )-sum({&amp;lt;[Categorie]= {'OPLEIDING' } &amp;gt;} [Budget Bedrag] )-sum({&amp;lt;[Categorie]= {'Overige omzet' } &amp;gt;} [Budget Bedrag] )-sum({&amp;lt;[Categorie]= {'REIS' } &amp;gt;} [Budget Bedrag] )-sum({&amp;lt;[Categorie]= {'OVERIG' } &amp;gt;} [Budget Bedrag] )))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(-sum({&amp;lt;[Categorie]= {'DIENST' } &amp;gt;} [Bedrag] )-sum({&amp;lt;[Categorie]= {'LICENTIE' } &amp;gt;} [Bedrag] )-sum({&amp;lt;[Categorie]= {'ONDERHOUD' } &amp;gt;} [Bedrag] )-sum({&amp;lt;[Categorie]= {'OPLEIDING' } &amp;gt;} [Bedrag] )-sum({&amp;lt;[Categorie]= {'Overige omzet' } &amp;gt;} [Bedrag] )-sum({&amp;lt;[Categorie]= {'REIS' } &amp;gt;} [Bedrag] )-sum({&amp;lt;[Categorie]= {'OVERIG' } &amp;gt;} [Bedrag] )))&lt;BR /&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,',#%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Roy Covalenco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571746#M213011</guid>
      <dc:creator />
      <dc:date>2014-03-13T13:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571747#M213012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the text box properties select "General" tab, then in the "Background" area select color and paste your formula in calculated text box area in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(myExpression &amp;lt; value, RGB(255,0,0),&lt;/P&gt;&lt;P&gt;If(myExpression = value, RGB(0,255,0),&lt;/P&gt;&lt;P&gt;RGB(0,0,255)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571747#M213012</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-13T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571748#M213013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your fast response, it seems that it won't work together with my expression somehow. The "outcome" of my text box is now the RGB value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571748#M213013</guid>
      <dc:creator />
      <dc:date>2014-03-13T13:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571749#M213014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have an = sign before your expresision&lt;/P&gt;&lt;P&gt;= If .........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571749#M213014</guid>
      <dc:creator />
      <dc:date>2014-03-13T13:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571750#M213015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but that was already added by me. The outcome given by the expression provided by Alessandro is "RGB(255,0,0)" when using just &amp;lt;0 and when using both &amp;lt;0 and =0 in the same expression the value is " - ". I hope somebody knows how to solve my problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Roy Covalenco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571750#M213015</guid>
      <dc:creator />
      <dc:date>2014-03-13T15:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571751#M213016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a text box, there are three qualities you can change in the Properties dialog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the text displayed: See General-&amp;gt;Foreground-&amp;gt;Text. If the above formula works, then leave it as is.&lt;/LI&gt;&lt;LI&gt;the foreground (text) color: See Font-&amp;gt;Color, click the color button and select a fixed color or a Calculated value in the field on the right&lt;/LI&gt;&lt;LI&gt;the background (text area) color: See General-&amp;gt;Background-&amp;gt;Color, click the color button and select a fixed color or a Calculatyed value i nthe field on the right. This is what Alessandro suggested. Dit you use that technique?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you put the expression in one of the two Calculated color fields, there will always be a color, never a '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW I think you can change your formula into the following less bulky version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(1-(sum({&amp;lt;[Categorie]= {'DIENST', 'LICENTIE', 'ONDERHOUD', 'OPLEIDING', 'Overige omzet', 'REIS', 'OVERIG' } &amp;gt;} [Budget Bedrag] )&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Categorie]= {'DIENST', 'LICENTIE', 'ONDERHOUD', 'OPLEIDING', 'Overige omzet', 'REIS', 'OVERIG' } &amp;gt;} [Bedrag] ))&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;,',#%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Edit: further simplified the above expression. Replace myExpression both times with this expression but first strip the leading equal sign and the Num() call.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571751#M213016</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-03-13T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571752#M213017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this example. Change the loaded data in the script and see what happens with the two text boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 16:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571752#M213017</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-03-13T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571753#M213018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally missed your responce, either way thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. It was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 10:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571753#M213018</guid>
      <dc:creator />
      <dc:date>2014-05-13T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Color for text box expression outcome</title>
      <link>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571754#M213019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the discussion by marking an answer as correct (and some others as helpful). That way community visitors can find topic discussions that do actually contain an answer to their questions (the blue balloon will turn green = answered). Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 11:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-for-text-box-expression-outcome/m-p/571754#M213019</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-05-13T11:24:38Z</dc:date>
    </item>
  </channel>
</rss>

