<?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: Error in expression: If takes 2-3 parameters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661960#M49708</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(Condition &amp;lt;= 1 , green(),&lt;/SPAN&gt;&lt;SPAN&gt;If(Condition &amp;lt;=20 , Yellow(),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If(Condition &amp;lt;=50 , rgb(255,165,0), Red())))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 09:38:16 GMT</pubDate>
    <dc:creator>Kashyap_R</dc:creator>
    <dc:date>2020-01-02T09:38:16Z</dc:date>
    <item>
      <title>Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661956#M49706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a developer in Qlik Sense facing issue in an expression like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=If(Condition &amp;lt;= 1 , Green(), Yellow(),&lt;BR /&gt;If(Condition &amp;lt;=20 , Yellow(), rgb(255,165,0),&lt;BR /&gt;If(Condition &amp;lt;=50 , rgb(255,165,0), Red())))&lt;/P&gt;&lt;P&gt;Need background colors like value less than or equal to 1 % show green color or else yellow() ,&amp;nbsp;value less than or equal to 20 %&amp;nbsp; show yellow() or else orange color and at last value less than or equal to 50% show&amp;nbsp;orange color or else red() .&lt;/P&gt;&lt;P&gt;Please help me with this basic error. It would be helpful.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ishan.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661956#M49706</guid>
      <dc:creator>ishansjain2095</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661960#M49708</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(Condition &amp;lt;= 1 , green(),&lt;/SPAN&gt;&lt;SPAN&gt;If(Condition &amp;lt;=20 , Yellow(),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If(Condition &amp;lt;=50 , rgb(255,165,0), Red())))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 09:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661960#M49708</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-01-02T09:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661966#M49711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(Condition &amp;lt;= 0.01 , green(),&lt;/SPAN&gt;&lt;SPAN&gt;If(Condition &amp;lt;=0.20 , Yellow(),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If(Condition &amp;lt;=0.50 , rgb(255,165,0), Red())))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 09:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661966#M49711</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-01-02T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661967#M49712</link>
      <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;Could you explain to me the if() statement in brief what it's doing?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 09:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661967#M49712</guid>
      <dc:creator>ishansjain2095</dc:creator>
      <dc:date>2020-01-02T09:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661968#M49713</link>
      <description>&lt;P&gt;Hi Mayilvahanan,&lt;/P&gt;&lt;P&gt;Thanks for the query.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 09:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661968#M49713</guid>
      <dc:creator>ishansjain2095</dc:creator>
      <dc:date>2020-01-02T09:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661978#M49715</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Kashyap and Mayilvahanan I used both expressions in the background tab it showing the wrong background color as shown below.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661978#M49715</guid>
      <dc:creator>ishansjain2095</dc:creator>
      <dc:date>2020-01-02T10:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661991#M49716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can u share the sample file and can u please elaborate on the requirement u need properly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1661991#M49716</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-01-02T10:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1662012#M49718</link>
      <description>&lt;P&gt;=If(Condition &amp;lt;= 1 , Green(), Yellow(),&lt;BR /&gt;If(Condition &amp;lt;=20 , Yellow(), rgb(255,165,0),&lt;BR /&gt;If(Condition &amp;lt;=50 , rgb(255,165,0), Red())))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sol: The If conditions are not correct&lt;/P&gt;&lt;P&gt;Eg: If condition value = 0.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;It satisfies all the conditions(0.5 &amp;lt;=1 , 0.5&amp;lt;=20, 0.5&amp;lt;=50).&lt;/P&gt;&lt;P&gt;So the condition should be .&lt;/P&gt;&lt;P&gt;if Condition &amp;lt;=1 - Green, else&lt;/P&gt;&lt;P&gt;if &amp;gt;1 Condition &amp;lt;=20 - Yellow. else&lt;/P&gt;&lt;P&gt;if &amp;gt;20 Condition &amp;lt;=50 - rgb(255,165,0). else&lt;/P&gt;&lt;P&gt;Red.&lt;/P&gt;&lt;P&gt;=If(Condition &amp;lt;= 1 , Green(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Condition &amp;gt; 1 And Condition &amp;lt;=20 , Yellow(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Condition &amp;gt;20&amp;nbsp; And Condition &amp;lt;=50 , rgb(255,165,0), Red())))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1662012#M49718</guid>
      <dc:creator>qlik4asif</dc:creator>
      <dc:date>2020-01-02T10:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1662305#M49731</link>
      <description>&lt;P&gt;Hi QLik4asif,&lt;/P&gt;&lt;P&gt;Can this expression be used for comparing 5 different values?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 05:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1662305#M49731</guid>
      <dc:creator>ishansjain2095</dc:creator>
      <dc:date>2020-01-03T05:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression: If takes 2-3 parameters</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1662311#M49733</link>
      <description>&lt;P&gt;You can also use Pick Match function, which is having better performance than nested if statement&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 06:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-expression-If-takes-2-3-parameters/m-p/1662311#M49733</guid>
      <dc:creator>qlik4asif</dc:creator>
      <dc:date>2020-01-03T06:25:15Z</dc:date>
    </item>
  </channel>
</rss>

