<?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 Set Analysis Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/422884#M1156497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am to campare a field with two variable in set analysis but while camparing a field wrt two fields , i can&amp;nbsp; not able to convert the below expression in set analysis.&lt;/P&gt;&lt;P&gt;So please help me out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((count(DISTINCT if(Emp_LeavingDate&amp;gt;= Quarter_Start and&lt;/P&gt;&lt;P&gt;Emp_LeavingDate&amp;lt;= Quarter_End and EMPLSTATUS = 0 and PAYSCALETY &amp;lt;&amp;gt; 'AP'&lt;/P&gt;&lt;P&gt; and PAYSCALETY &amp;lt;&amp;gt; 'TT'and PAYSCALETY &amp;lt;&amp;gt; 'T0',EMPLOYEE_Code)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; /&lt;/P&gt;&lt;P&gt;(((count(DISTINCT if(Emp_JoinningDate&amp;lt;= Quarter_Start and EMPLSTATUS = 3 and&lt;/P&gt;&lt;P&gt; PAYSCALETY &amp;lt;&amp;gt; 'AP'and PAYSCALETY &amp;lt;&amp;gt; 'TT'and PAYSCALETY &amp;lt;&amp;gt; 'T0',EMPLOYEE_Code))) +&lt;/P&gt;&lt;P&gt;&amp;nbsp; (count(DISTINCT if(Emp_JoinningDate&amp;lt;= Quarter_End and EMPLSTATUS = 3 and&lt;/P&gt;&lt;P&gt; PAYSCALETY &amp;lt;&amp;gt; 'AP'and PAYSCALETY &amp;lt;&amp;gt; 'TT'and PAYSCALETY &amp;lt;&amp;gt; 'T0',EMPLOYEE_Code))))/2))&lt;/P&gt;&lt;P&gt; *4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 11:27:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-15T11:27:32Z</dc:date>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/422884#M1156497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am to campare a field with two variable in set analysis but while camparing a field wrt two fields , i can&amp;nbsp; not able to convert the below expression in set analysis.&lt;/P&gt;&lt;P&gt;So please help me out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((count(DISTINCT if(Emp_LeavingDate&amp;gt;= Quarter_Start and&lt;/P&gt;&lt;P&gt;Emp_LeavingDate&amp;lt;= Quarter_End and EMPLSTATUS = 0 and PAYSCALETY &amp;lt;&amp;gt; 'AP'&lt;/P&gt;&lt;P&gt; and PAYSCALETY &amp;lt;&amp;gt; 'TT'and PAYSCALETY &amp;lt;&amp;gt; 'T0',EMPLOYEE_Code)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; /&lt;/P&gt;&lt;P&gt;(((count(DISTINCT if(Emp_JoinningDate&amp;lt;= Quarter_Start and EMPLSTATUS = 3 and&lt;/P&gt;&lt;P&gt; PAYSCALETY &amp;lt;&amp;gt; 'AP'and PAYSCALETY &amp;lt;&amp;gt; 'TT'and PAYSCALETY &amp;lt;&amp;gt; 'T0',EMPLOYEE_Code))) +&lt;/P&gt;&lt;P&gt;&amp;nbsp; (count(DISTINCT if(Emp_JoinningDate&amp;lt;= Quarter_End and EMPLSTATUS = 3 and&lt;/P&gt;&lt;P&gt; PAYSCALETY &amp;lt;&amp;gt; 'AP'and PAYSCALETY &amp;lt;&amp;gt; 'TT'and PAYSCALETY &amp;lt;&amp;gt; 'T0',EMPLOYEE_Code))))/2))&lt;/P&gt;&lt;P&gt; *4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/422884#M1156497</guid>
      <dc:creator />
      <dc:date>2013-01-15T11:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/422885#M1156498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first count() should be translated to something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;Emp_LeavingDate={"&amp;gt;=$(Quarter_Start)&amp;lt;=$(Quarter_End)"}, EMPLSTATUS={0}, PAYSCALETY-={'AP','TT','T0'}&amp;gt;} DISTINCT EMPLOYEE_Code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it will not work at the first attempt... You'll have to check the format of the field Emp_LeavingDate and adjust the dollar-sign expansion of Quarter_Start and Quarter_End in a proper format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other count()'s are pretty similar, so if you get the first one you'll be able to adjust them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 21:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/422885#M1156498</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2013-01-15T21:27:43Z</dc:date>
    </item>
  </channel>
</rss>

