<?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 If value is between 2 numbers then color x in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1794881#M62288</link>
    <description>&lt;P&gt;Need a little help&lt;/P&gt;&lt;P&gt;We are trying to write a color expression for the following traffic light table:&lt;/P&gt;&lt;P&gt;If cop_overall_status is between 0-39 = Green&lt;/P&gt;&lt;P&gt;If cop_overall_status is between 40-89 =Yellow&lt;/P&gt;&lt;P&gt;If cop_overall_status is between 90-100 = Light Red&lt;/P&gt;&lt;P&gt;If cop_overall_status value equals 0 = Light grey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I thought it would look like however I get an&amp;nbsp; Error message in QLIK&lt;/P&gt;&lt;P&gt;=if([cop_overall_status]={"&amp;gt;=1 &amp;lt;=39"},Green(),if([cop_overall_status]={"&amp;gt;=40 &amp;lt;=89"},Yellow(),if([cop_overall_status]={"&amp;gt;=90 &amp;lt;=100"},LightRed(),if([cop_overall_status]=0,lightGray()))))&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
    <dc:creator>JBritten</dc:creator>
    <dc:date>2021-12-20T21:02:46Z</dc:date>
    <item>
      <title>If value is between 2 numbers then color x</title>
      <link>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1794881#M62288</link>
      <description>&lt;P&gt;Need a little help&lt;/P&gt;&lt;P&gt;We are trying to write a color expression for the following traffic light table:&lt;/P&gt;&lt;P&gt;If cop_overall_status is between 0-39 = Green&lt;/P&gt;&lt;P&gt;If cop_overall_status is between 40-89 =Yellow&lt;/P&gt;&lt;P&gt;If cop_overall_status is between 90-100 = Light Red&lt;/P&gt;&lt;P&gt;If cop_overall_status value equals 0 = Light grey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I thought it would look like however I get an&amp;nbsp; Error message in QLIK&lt;/P&gt;&lt;P&gt;=if([cop_overall_status]={"&amp;gt;=1 &amp;lt;=39"},Green(),if([cop_overall_status]={"&amp;gt;=40 &amp;lt;=89"},Yellow(),if([cop_overall_status]={"&amp;gt;=90 &amp;lt;=100"},LightRed(),if([cop_overall_status]=0,lightGray()))))&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1794881#M62288</guid>
      <dc:creator>JBritten</dc:creator>
      <dc:date>2021-12-20T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: If value is between 2 numbers then color x</title>
      <link>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1795004#M62305</link>
      <description>&lt;P&gt;Hi, thats not hte corect syntax for if(), try as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if([cop_overall_status]&amp;gt;=1 and [cop_overall_status]&amp;lt;=39,Green()
  ,if([cop_overall_status]&amp;gt;=40 and [cop_overall_status]&amp;lt;=89,Yellow()
  ,if([cop_overall_status]&amp;gt;=90 and [cop_overall_status]&amp;lt;=100,LightRed()
  ,if([cop_overall_status]=0,lightGray())
)))&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 27 Mar 2021 08:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1795004#M62305</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-27T08:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: If value is between 2 numbers then color x</title>
      <link>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1795280#M62345</link>
      <description>&lt;P&gt;Thank you that worked&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 12:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-value-is-between-2-numbers-then-color-x/m-p/1795280#M62345</guid>
      <dc:creator>JBritten</dc:creator>
      <dc:date>2021-03-29T12:12:29Z</dc:date>
    </item>
  </channel>
</rss>

