<?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: Set Analysis for Less than Equal in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366273#M136244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct but I want to make it Less than or equal too. Does that make since?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2012 16:38:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-24T16:38:12Z</dc:date>
    <item>
      <title>Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366270#M136241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone assest me with the Set Analysis for the following fields and varables? It seems so simple and yet all the discussions make it so hard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EmployeeDirectory.DOH &amp;lt;= vLastYear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366270#M136241</guid>
      <dc:creator />
      <dc:date>2012-07-24T16:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366271#M136242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What you are trying to calculate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;EmployeeDirectory.DOH = {'$(=vLastYear)'}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For less than or equal to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;EmployeeDirectory.DOH = {'&amp;lt;=$(=vLastYear)'}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366271#M136242</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-24T16:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366272#M136243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;EmployeeDirectory.DOH ={"&amp;lt;=$(=vLastYear)"}&lt;/SPAN&gt;&amp;gt;} FieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366272#M136243</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-07-24T16:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366273#M136244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct but I want to make it Less than or equal too. Does that make since?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366273#M136244</guid>
      <dc:creator />
      <dc:date>2012-07-24T16:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366274#M136245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does this look I think you forgot the quotes&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;EmployeeDirectory.DOH = {$('&amp;gt;vLastYear')}&amp;gt;} EmployeeDirectory.Name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366274#M136245</guid>
      <dc:creator />
      <dc:date>2012-07-24T16:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366275#M136246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; For less than or equal to&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;EmployeeDirectory.DOH = {'&amp;lt;=$(=vLastYear)'}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366275#M136246</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-24T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366276#M136247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calculatinig people who were here in 2011 and I look at&lt;/P&gt;&lt;P&gt;DOH_Year&amp;lt;=vLastYear&amp;nbsp; and NLE_Year&amp;lt;vLastYear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I change your expression to do this new calculation? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW your calcuation was correct for what I asked for but now I have to include people who were not here at that time as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 17:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366276#M136247</guid>
      <dc:creator />
      <dc:date>2012-07-24T17:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366277#M136248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there relation between DOH_Year and NLE_Year? If so, use like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}, &lt;STRONG&gt;NLE_Year -= {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you post a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 18:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366277#M136248</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-24T18:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366278#M136249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NLE is "No Longer Here" and DOH is "Date of hired". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get that it gets to be DOH_Year&amp;lt;= and NLE_Year &amp;lt;&amp;gt;vLastYear correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 18:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366278#M136249</guid>
      <dc:creator />
      <dc:date>2012-07-24T18:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366279#M136250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is both Year field?If so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}, &lt;STRONG&gt;NLE_Year -= {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Celambarasan solution solve your problem perfectly..I forget that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&amp;gt; *&amp;lt; &lt;STRONG&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 18:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366279#M136250</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-24T18:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366280#M136251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For and conditions you have to use like below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt; =Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&amp;gt;*&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;}Distinct EmployeeName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;It gives you the employees hired &amp;lt;= last year and not here in Last year&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 18:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366280#M136251</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-07-24T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366281#M136252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't understand your conditions and requirements?Do you need the employees leaved from office last year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 18:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366281#M136252</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-07-24T18:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366282#M136253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want everyone who was an employee at the end of year 2011. NLE is No Longer Employeed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366282#M136253</guid>
      <dc:creator />
      <dc:date>2012-07-24T21:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366283#M136254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;=Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;gt;*&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;NLE_Year = {'&amp;gt;$(=vLastYear)'&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;}Distinct EmployeeName)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366283#M136254</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-07-24T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366284#M136255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I do this I get Zero's. Can you explain what the * is between the two set analysis? And would the NLE_Year be not equal to vLastYear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366284#M136255</guid>
      <dc:creator />
      <dc:date>2012-07-24T21:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366285#M136256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/mayilvahanan" id="jive-887781432559669506243" onmouseout="" onmouseover=""&gt;Mayil Vahanan Ramasamy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your calculation worked except it didn't count the blanks from the database, which I want included because they were here at that time. Any ideas why it doesn't count them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366285#M136256</guid>
      <dc:creator />
      <dc:date>2012-07-24T21:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366286#M136257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By celambarasan concept is correct,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&amp;gt; *&amp;lt; &lt;STRONG&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it checks both, who are all in last year in DOH_Year and NLE_Year also...but exclude the person in last year in NLE_Year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you test like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;&lt;STRONG&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Then check like this, before that verify the data manually, if any one is satisfy the following condition..&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&amp;gt; *&amp;lt; &lt;STRONG&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is mentioned earlier, gives exclude the person , who are below the last year in NLE_Year and include the person who are in present year and DOH_Year &amp;lt;= vLastyear..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand the expression..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 22:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366286#M136257</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-24T22:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366287#M136258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayil,&lt;/P&gt;&lt;P&gt;Both expression's return all zeros. So it look likes because the first expression is failing for some reason. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;&lt;STRONG&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&amp;gt; *&amp;lt; &lt;STRONG&gt;NLE_Year = {'&amp;lt;$(=vLastYear)'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 22:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366287#M136258</guid>
      <dc:creator />
      <dc:date>2012-07-24T22:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366288#M136259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan,&lt;/P&gt;&lt;P&gt;Does the &amp;gt;*&amp;lt; mean AND? Does the comma do the same thing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; =Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'},NLE_Year -= {'&amp;lt;$(=vLastYear)'}&amp;gt;} EmployeeDirectory.Name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DOH_Year = {'&amp;lt;=$(=vLastYear)'}&amp;gt;*&amp;lt; NLE_Year -= {'&amp;lt;$(=vLastYear)'}&amp;gt;} EmployeeDirectory.Name) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 15:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366288#M136259</guid>
      <dc:creator />
      <dc:date>2012-07-25T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Less than Equal</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366289#M136260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you check the &lt;STRONG&gt;NLE_Year&lt;/STRONG&gt; values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=Count({&amp;lt;&lt;STRONG&gt;NLE_Year = {'2010'&lt;/STRONG&gt;}&amp;gt;}Distinct EmployeeName) gives any value..By check this, you can find the error..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 16:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Less-than-Equal/m-p/366289#M136260</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-25T16:19:27Z</dc:date>
    </item>
  </channel>
</rss>

