<?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: Errors with Red and Green background for if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958086#M967654</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&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if([Tool Entity]='Eduroam' or &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;[Tool Entity]=&lt;/STRONG&gt;'Lse',Green(),Red())&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 10:58:46 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2015-09-29T10:58:46Z</dc:date>
    <item>
      <title>Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958084#M967652</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;Depending on my if statement I would like a red and green background for the values, but when I use this equation it doesn't work, I am using this statement in the background drop down in the expressions tab in a straight table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Match([Tool Entity],'Eduroam','Lse')=0,Green(),if(Match([Tool Entity],'Eduroam','Lse')&amp;lt;&amp;gt;0,Red()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want for the values for fields 'Eduroam' and 'Lse' within the main field [Tool Entity] to be green when = 0 and I want them to be red when they are not equal to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958084#M967652</guid>
      <dc:creator>stjernvd</dc:creator>
      <dc:date>2015-09-29T10:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958085#M967653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pick(1+Match([Tool Entity],'Eduroam','Lse'),Red(),Green(),Green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958085#M967653</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-29T10:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958086#M967654</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&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if([Tool Entity]='Eduroam' or &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;[Tool Entity]=&lt;/STRONG&gt;'Lse',Green(),Red())&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958086#M967654</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-29T10:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958087#M967655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="c.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100318_c.png" style="height: 217px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958087#M967655</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-29T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958088#M967656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So I want for the values for fields 'Eduroam' and 'Lse' within the main field [Tool Entity] to be green when = 0 and I want them to be red when they are not equal to 0.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ehm... a string value 'Eduroam' is always unequal to a value 0. 'Eduroam' is a string value. Where does the 0 come from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958088#M967656</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-29T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958089#M967657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do it so that only the value is green or red and not the entire background? so just the number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958089#M967657</guid>
      <dc:creator>stjernvd</dc:creator>
      <dc:date>2015-09-29T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958090#M967658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I clearly made a mistake, these fields 'Eduroam' and 'Lse' are meant to be for the sum(position) column which is the values of the fields 'Eduroam' and 'Lse' within 'Tool Entity'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when 'Eduroam' and 'Lse' within TOOL ENTITY = 0, the values for sum(position) should be green, and if they are not equal to zero sum(position) values should be red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set that up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958090#M967658</guid>
      <dc:creator>stjernvd</dc:creator>
      <dc:date>2015-09-29T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958091#M967659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I clearly made a mistake, these fields 'Eduroam' and 'Lse' are meant to be for the sum(position) column which is the values of the fields 'Eduroam' and 'Lse' within 'Tool Entity'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when 'Eduroam' and 'Lse' within TOOL ENTITY = 0, the values for sum(position) should be green, and if they are not equal to zero sum(position) values should be red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set that up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958091#M967659</guid>
      <dc:creator>stjernvd</dc:creator>
      <dc:date>2015-09-29T11:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958092#M967660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid you're not making things clearer. &lt;SPAN style="font-size: 13.3333330154419px;"&gt;I have no idea what are fields, what are expressions and what are values.&lt;/SPAN&gt; Please post a small qlikview document that makes clear what's what. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958092#M967660</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-29T11:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958093#M967661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, in my straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tool Entity (Field)&lt;/P&gt;&lt;P&gt;Eduroam&lt;/P&gt;&lt;P&gt;LSE&lt;/P&gt;&lt;P&gt;UCL&lt;/P&gt;&lt;P&gt;Kings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Position) (Values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I only want to highlight the strings 'Eduroam' and 'Lse' as red and green within the field Tool Entity, so if sum(Position) for Eduroam and Lse = 0, I want the Sum(Position) value to be green, if sum(Position) for Eduroam and Lse &amp;lt;&amp;gt; 0, I want the Sum(Position) value to be red. I just want to highlight the number, not the entire cell background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958093#M967661</guid>
      <dc:creator>stjernvd</dc:creator>
      <dc:date>2015-09-29T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958094#M967662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;stjernvd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( ( [Tool Entity]='Eduroam' OR &lt;SPAN style="font-size: 13.3333px;"&gt;[Tool Entity]='Lse' ) &lt;/SPAN&gt;AND SUM(Sales) &amp;lt;&amp;gt; 0 , Green(), &lt;SPAN style="font-size: 13.3333px;"&gt;IF( ( [Tool Entity]='Eduroam' OR &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Tool Entity]='Lse' ) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AND SUM(Sales) &amp;lt;&amp;gt; 0 &lt;/SPAN&gt;,Red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958094#M967662</guid>
      <dc:creator />
      <dc:date>2015-09-29T11:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Red and Green background for if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958095#M967663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this: If(match([Tool Entity],'Eduroam','LSE', if(sum(Position), red(), green() )). You will have to disable the Suppress Zero-Values option. Otherwise records where sum(Position) is 0 won't be shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 12:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-with-Red-and-Green-background-for-if-statement/m-p/958095#M967663</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-29T12:59:43Z</dc:date>
    </item>
  </channel>
</rss>

