<?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 statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299485#M405200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do an statement for a set of data like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;}Community)&amp;nbsp; /Count(Community)&amp;gt;=0.9,Green(),&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.9,LightGreen(),&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.5, &lt;STRONG&gt;Blue()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.5,Red()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not give me the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Apr 2017 11:18:54 GMT</pubDate>
    <dc:creator>akpofureenughwu</dc:creator>
    <dc:date>2017-04-11T11:18:54Z</dc:date>
    <item>
      <title>If statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299485#M405200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do an statement for a set of data like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;}Community)&amp;nbsp; /Count(Community)&amp;gt;=0.9,Green(),&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.9,LightGreen(),&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.5, &lt;STRONG&gt;Blue()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.5,Red()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not give me the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299485#M405200</guid>
      <dc:creator>akpofureenughwu</dc:creator>
      <dc:date>2017-04-11T11:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299486#M405201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last two conditions look the same, is that on purpose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159737_Capture.PNG" style="height: 115px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299486#M405201</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-11T11:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299487#M405202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;}Community)&amp;nbsp; /Count(Community)&amp;gt;=0.9,Green(),&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.9,LightGreen(),&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.5, &lt;STRONG&gt;Blue()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;=0.49,Red()))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299487#M405202</guid>
      <dc:creator>akpofureenughwu</dc:creator>
      <dc:date>2017-04-11T11:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299488#M405203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;=0.49,Red(),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.5, &lt;/SPAN&gt;Blue(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(count({$&amp;lt;[Project Status] = {'Completed'} &amp;gt;} Community)&amp;nbsp; /Count(Community)&amp;lt;0.9,LightGreen(), &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Green())))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299488#M405203</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-11T11:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299489#M405204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we assume that IF() functions are evaluated in sequence, this expression only produces two colors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Green for everything larger than or equal to 0.9&lt;/LI&gt;&lt;LI&gt;Lightgreen for everything smaller than 0.9&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other expressions won't be evaluated because there will always be a match in the first two IF() calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reorder your expression as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF (expr &amp;lt;= 0.49, Red(),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (expr &amp;lt; 0.5, Blue(),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (expr &amp;lt; 0.9, Lightgreen(),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Green())))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;You may want to change the border values for the first two tests, because the blue color range will only match &lt;SPAN style="font-family: 'courier new', courier;"&gt;0.49 &amp;lt; x &amp;lt; 0.5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement/m-p/1299489#M405204</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-04-11T11:37:01Z</dc:date>
    </item>
  </channel>
</rss>

