<?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 Changing Colours depending on selection and + or - value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957443#M328857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a text box with the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Selection Type]='Month / Month', num($(vVarianceMTDRev),'#.%'),&lt;/P&gt;&lt;P&gt;if([Selection Type]='Year / Year',num($(vVarianceRevYr/Yr),'#.%'),&amp;nbsp; &lt;/P&gt;&lt;P&gt;num($(vRevenueQTDVariance),'#.%')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically this formula will display a % based on a selection either Month, Quarter or Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue i am having is i want to the colour to change if it is a negative or positive number so green for positive and red for negative. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried a number of things in the calculated colour expression but nothing i do works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is one thing i tried: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(vRevenueQTDVariance)&amp;lt; 0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$(vVarianceMTDRev) &amp;lt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$(vVarianceRevYr/Yr) &amp;lt;0,red(), green())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it keep everything red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 12:18:46 GMT</pubDate>
    <dc:creator>ryanfoster84</dc:creator>
    <dc:date>2015-09-02T12:18:46Z</dc:date>
    <item>
      <title>Changing Colours depending on selection and + or - value</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957443#M328857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a text box with the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Selection Type]='Month / Month', num($(vVarianceMTDRev),'#.%'),&lt;/P&gt;&lt;P&gt;if([Selection Type]='Year / Year',num($(vVarianceRevYr/Yr),'#.%'),&amp;nbsp; &lt;/P&gt;&lt;P&gt;num($(vRevenueQTDVariance),'#.%')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically this formula will display a % based on a selection either Month, Quarter or Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue i am having is i want to the colour to change if it is a negative or positive number so green for positive and red for negative. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried a number of things in the calculated colour expression but nothing i do works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is one thing i tried: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(vRevenueQTDVariance)&amp;lt; 0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$(vVarianceMTDRev) &amp;lt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$(vVarianceRevYr/Yr) &amp;lt;0,red(), green())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it keep everything red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957443#M328857</guid>
      <dc:creator>ryanfoster84</dc:creator>
      <dc:date>2015-09-02T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Colours depending on selection and + or - value</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957444#M328858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than using a colour expressions, use the settings in the Visual Cues tab to automatically colour positive and negative values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957444#M328858</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-02T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Colours depending on selection and + or - value</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957445#M328859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if(sign(if([Selection Type]='Month / Month', num($(vVarianceMTDRev),'#.%'),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if([Selection Type]='Year / Year',num($(vVarianceRevYr/Yr),'#.%'), &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;num($(vRevenueQTDVariance),'#.%'))))=-1,red(),green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957445#M328859</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-02T12:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Colours depending on selection and + or - value</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957446#M328860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you this works brilliantly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957446#M328860</guid>
      <dc:creator>ryanfoster84</dc:creator>
      <dc:date>2015-09-02T12:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Colours depending on selection and + or - value</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957447#M328861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share the sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957447#M328861</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-02T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Colours depending on selection and + or - value</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957448#M328862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no sadly not as its sensitive information but @avinash r gave me the correct solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-Colours-depending-on-selection-and-or-value/m-p/957448#M328862</guid>
      <dc:creator>ryanfoster84</dc:creator>
      <dc:date>2015-09-02T12:28:48Z</dc:date>
    </item>
  </channel>
</rss>

