<?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 Multiple condition color expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20762#M782433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I'm trying to place two conditions on a color. I'm using the below expression for red, amber, green but I want to write something along the lines of IF (SUM([Current]-[Original]) &amp;lt; 1 and [DISCUSSION FLAG] = 'X', GREEN().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;How do I write 2 conditions for a color based off of 2 data points?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF (SUM([Current]-[Original]) &amp;lt; 1, GREEN(),&lt;/P&gt;&lt;P&gt;IF ([AT RISK] = 'X', YELLOW()&lt;/P&gt;&lt;P&gt;,RED()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>james_westbrook</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Multiple condition color expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20762#M782433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I'm trying to place two conditions on a color. I'm using the below expression for red, amber, green but I want to write something along the lines of IF (SUM([Current]-[Original]) &amp;lt; 1 and [DISCUSSION FLAG] = 'X', GREEN().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;How do I write 2 conditions for a color based off of 2 data points?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF (SUM([Current]-[Original]) &amp;lt; 1, GREEN(),&lt;/P&gt;&lt;P&gt;IF ([AT RISK] = 'X', YELLOW()&lt;/P&gt;&lt;P&gt;,RED()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20762#M782433</guid>
      <dc:creator>james_westbrook</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition color expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20763#M782434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this already?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(Sum([Current] - [Original]) &amp;lt; 1 and &lt;SPAN style="color: #3d3d3d; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;[DISCUSSION FLAG] = 'X'&lt;/SPAN&gt;, Green(), If([AT RISK] = 'X', Yellow(), Red()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20763#M782434</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-27T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition color expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20764#M782435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. I tried it again and it worked. I must have fat fingered it the first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Sum([Current] - [Original]) &amp;lt; 1 and [DISCUSSION FLAG] = 'X', RGB(150,255,150),&lt;/P&gt;&lt;P&gt;If(Sum([Current] - [Original]) &amp;lt; 1 and [DISCUSSION FLAG]&amp;nbsp; &amp;lt;&amp;gt;'X', Green(),&lt;/P&gt;&lt;P&gt;If(Sum([Current] - [Original]) &amp;gt; 1 and [DISCUSSION FLAG]&amp;nbsp; = 'X', RGB(255,150,150),&lt;/P&gt;&lt;P&gt;If([AT RISK] = 'X', Yellow()&lt;/P&gt;&lt;P&gt;, Red()))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 20:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/20764#M782435</guid>
      <dc:creator>james_westbrook</dc:creator>
      <dc:date>2018-03-27T20:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition color expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/1798349#M1211452</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I have a similar problems with which I hope you can help.&lt;/P&gt;&lt;P&gt;First problem: I have the field [Pest Qty] which I want to assign three colors to. Any value below 2 should be green, any value between 2 and 5 should be yellow and anything above 5 should be red.&lt;/P&gt;&lt;P&gt;Second problem: I have to assign the above colors to the dimension [PDDD] and within that dimension I would only like to apply that to 'BI' as a subsection of [PDDD].&lt;/P&gt;&lt;P&gt;Third problem: I have multiple subsections of [PDDD], e.g 'BI' 'MEALYBUG' 'FRUIT FLY' with different ranges&amp;nbsp; for each.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/1798349#M1211452</guid>
      <dc:creator>JohnDataAnalyst</dc:creator>
      <dc:date>2021-04-09T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition color expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/1798350#M1211453</link>
      <description>&lt;P&gt;I tried the following:&lt;/P&gt;&lt;P&gt;If(Sum([Pest Qty?])&amp;lt;=2 and PDDD='BI',Green()&lt;BR /&gt;If(Sum([Pest Qty?])&amp;gt;2 and PDDD='BI', Yellow()&lt;BR /&gt;If(Sum([Pest Qty?])&amp;gt;5 and PDDD='BI', Red())))&lt;/P&gt;&lt;P&gt;but to no avail.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-condition-color-expression/m-p/1798350#M1211453</guid>
      <dc:creator>JohnDataAnalyst</dc:creator>
      <dc:date>2021-04-09T13:44:08Z</dc:date>
    </item>
  </channel>
</rss>

