<?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: Expression not working as expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510619#M749887</link>
    <description>&lt;P&gt;your expression is showing 100.00% also yellow&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clr-yello.PNG" style="width: 139px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/772i2D9C1E4A601C0097/image-size/large?v=v2&amp;amp;px=999" role="button" title="clr-yello.PNG" alt="clr-yello.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 18:17:43 GMT</pubDate>
    <dc:creator>soniasweety</dc:creator>
    <dc:date>2018-11-21T18:17:43Z</dc:date>
    <item>
      <title>Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510596#M749879</link>
      <description>&lt;P&gt;I have used below logic but its showing me wrong result,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to frame this logic,&lt;/P&gt;&lt;P&gt;logic:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;97 or &amp;gt;103--red&lt;/P&gt;&lt;P&gt;100-green&lt;/P&gt;&lt;P&gt;&amp;gt;=97 and &amp;lt;100 or &amp;gt;100 and &amp;lt;=103 --yellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;used Expression: Expression says ok but result getting wrong colurs&lt;/P&gt;&lt;P&gt;=IF(Num([Rate],'#,##0.00%')&amp;lt;'97.00%' and Num([Rate],'#,##0.00%')&amp;gt;'103.00%',red() ,&lt;BR /&gt;IF(Num([Rate],'#,##0.00%')&amp;gt;='97.00%' and Num([Rate],'#,##0.00%')&amp;lt;'100.00%' and&lt;BR /&gt;Num([Rate],'#,##0.00%')&amp;gt;'100.00%' and Num([Rate],'#,##0.00%')&amp;lt;='103.00%',Yellow(),Green()))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510596#M749879</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2024-11-16T21:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510602#M749880</link>
      <description>&lt;P&gt;Understanding that you want to have red color when the value is greater than 103%, yellow if value is between 97% &amp;amp; 103% and green if the value is less than 97% -&lt;/P&gt;&lt;P&gt;Try this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN&gt;Num([Rate],'#,##0.00%')&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;'103.00%',red()&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;SPAN&gt;Num([Rate],'#,##0.00%')&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;'97.00%',Yellow()&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Green()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would also suggest to use the absolute numbers like .97 for 97%, it just makes the code look neat.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510602#M749880</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-11-21T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510603#M749881</link>
      <description>&lt;P&gt;Your ands and ors are mixed up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=IF(Num([Rate],'#,##0.00%')&amp;lt;'97.00%' &lt;STRONG&gt;or&lt;/STRONG&gt; Num([Rate],'#,##0.00%') &amp;gt;'103.00%',red() ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF(Num([Rate],'#,##0.00%')&amp;gt;='97.00%' and Num([Rate],'#,##0.00%')&amp;lt;'100.00%', Yellow(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF(Num([Rate],'#,##0.00%') &amp;gt;'100.00%' and Num([Rate],'#,##0.00%') &amp;lt;='103.00%', Yellow(), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Green() )))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The rate cannot be &amp;lt;97% and &amp;gt; 103%&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510603#M749881</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-11-21T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510606#M749882</link>
      <description>No.&lt;BR /&gt;i want to show&lt;BR /&gt;1. exact 100% means green&lt;BR /&gt;2. &amp;lt;97 or &amp;gt;103 red&lt;BR /&gt;3. &amp;gt;=97 and &amp;lt;100 or &amp;gt;100 and &amp;lt;=103 --yellow&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510606#M749882</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510611#M749883</link>
      <description>&lt;P&gt;thanks colin .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but still&amp;nbsp; 99.99% showing green only its should be yellow&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510611#M749883</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510612#M749884</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Okay, then try this -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;SPAN&gt;Num([Rate],'#,##0.00%')=&lt;/SPAN&gt;&lt;SPAN&gt;'100%',Green()&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN&gt;Num([Rate],'#,##0.00%')&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;'103.00%' OR Num([Rate],'#,##0.00%')&amp;lt;'97.00%',red()&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;Yellow()))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510612#M749884</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-11-21T18:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510614#M749885</link>
      <description>&lt;P&gt;Your expression is based on 2 decimal places so is actually calculating as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. exact 100.00% means green&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. &amp;lt;97.00 or &amp;gt;103.00 red&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. &amp;gt;=97.00 and &amp;lt;100.00 or &amp;gt;100.00 and &amp;lt;=103.00 --yellow,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so 100.01% will show as yellow - Are you sure you are working to this level of precision?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510614#M749885</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-11-21T18:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510616#M749886</link>
      <description>Yes its exactly 100% means it should show green</description>
      <pubDate>Wed, 21 Nov 2018 18:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510616#M749886</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510619#M749887</link>
      <description>&lt;P&gt;your expression is showing 100.00% also yellow&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clr-yello.PNG" style="width: 139px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/772i2D9C1E4A601C0097/image-size/large?v=v2&amp;amp;px=999" role="button" title="clr-yello.PNG" alt="clr-yello.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510619#M749887</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510621#M749888</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6619" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Colin_albert&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1086" target="_self"&gt;&lt;SPAN class=""&gt;Neelamsaroha157&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;atatching the sample&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510621#M749888</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510622#M749889</link>
      <description>&lt;P&gt;Can you display the percentage value with more decimal places to see if there is a rounding issue causing the green/yellow problem.&lt;BR /&gt;I would add this as another column for testing without the colour expression.&lt;/P&gt;&lt;P&gt;Or change one of the yellow() options to another colour to see which logic path is being followed.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510622#M749889</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-11-21T18:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510624#M749890</link>
      <description>i have attached sample could you please help on this?</description>
      <pubDate>Wed, 21 Nov 2018 18:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510624#M749890</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510626#M749891</link>
      <description>i changed yellow to other colour... its still not showing yellow colour. only green and red showing,</description>
      <pubDate>Wed, 21 Nov 2018 18:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510626#M749891</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510628#M749892</link>
      <description>&lt;P&gt;The yellow/green issue is due to rounding. See attached and Match Rate2 column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510628#M749892</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-11-21T18:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510630#M749893</link>
      <description>&lt;P&gt;thanks,but how can i show the same format?&amp;nbsp; as original column?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510630#M749893</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510632#M749894</link>
      <description>&lt;P&gt;Your load script has the expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;Num([Net Sales Order US Dollar Amount Yotta]/[Net Sales Order US Dollar Amount CDR], '#,##0.00%') as [Match Rate],&lt;/P&gt;&lt;P&gt;NUM is a number formatting function and does not round the values, so Qlik still holds the Match Rate value with full precision.&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;Round() and your chart will work correctly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(round([Net Sales Order US Dollar Amount Yotta]/[Net Sales Order US Dollar Amount CDR], 0.01), '#,##0.00%') as [Match Rate],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510632#M749894</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-11-21T18:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510634#M749896</link>
      <description>can i use this in chart expression or in script?</description>
      <pubDate>Wed, 21 Nov 2018 18:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510634#M749896</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510636#M749899</link>
      <description>&lt;P&gt;could&amp;nbsp; you please help on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i get filter as three colurs and how to incorpate while selection?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Modify-the-logic/td-p/1510519" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Modify-the-logic/td-p/1510519&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510636#M749899</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-11-21T18:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510637#M749900</link>
      <description>&lt;P&gt;Either.&amp;nbsp; I would say that rounding the values in the script would be simpler as any other expressions based on the Match Rate will all use the same precision.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Num alters how the number is displayed,&amp;nbsp;but keeps the actual number stored in Qlik unchanged. So with a % format, the number is stored as a decimal but displayed as a % and multiplied by 100 - so 0.1 shows as 10%&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510637#M749900</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-11-21T18:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510641#M749901</link>
      <description>&lt;P&gt;I think you are making it more complicated than necessary by trying to test string formats. How about:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if([Match Rate] = 1, green()&lt;BR /&gt;,if([Match Rate] &amp;lt; 0.97 or [Match Rate] &amp;gt; 1.03, red()&lt;BR /&gt;,yellow()&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-as-expected/m-p/1510641#M749901</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-11-21T18:52:45Z</dc:date>
    </item>
  </channel>
</rss>

