<?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 ISSUE using Class function and removing duplicate staff_ids in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ISSUE-using-Class-function-and-removing-duplicate-staff-ids/m-p/969831#M332170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue: I have created 2 reports which suppose to be same value but Those reports as below: one report tells how many of them are contract employees are there and How many are permanent employees there. the issue is when ever I am creating the report which is detail level year wise list of employees, it is giving wrong result. To resolve I have tried below ways: In Calculated Dimension I have taken as below: code written in caluclated Dimension: =Dual(Replace(class(vMaxYr-Year(DOB),5),'$(vMaxYYYYMM)'}, [(h)Staff Employment Type ID] =&amp;nbsp; , //[(h)Sort Key] = {"=aggr(max({1}[(h)Sort Key]), [(h)Staff ID])"}, STF_DEMOGRPHCS_FLAG={'Y'}&amp;nbsp;&amp;nbsp; //[(h)Sort Key]={'count(Aggr(MAX([(h)Sort Key]),[(h)Staff ID]))'} &amp;gt;} DISTINCT [(h)Staff ID]) Cn you please guid me how to reach my requirment that is instead of 72 i am getting value 99&amp;nbsp; for contract employees. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 07:31:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-24T07:31:16Z</dc:date>
    <item>
      <title>ISSUE using Class function and removing duplicate staff_ids</title>
      <link>https://community.qlik.com/t5/QlikView/ISSUE-using-Class-function-and-removing-duplicate-staff-ids/m-p/969831#M332170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue: I have created 2 reports which suppose to be same value but Those reports as below: one report tells how many of them are contract employees are there and How many are permanent employees there. the issue is when ever I am creating the report which is detail level year wise list of employees, it is giving wrong result. To resolve I have tried below ways: In Calculated Dimension I have taken as below: code written in caluclated Dimension: =Dual(Replace(class(vMaxYr-Year(DOB),5),'$(vMaxYYYYMM)'}, [(h)Staff Employment Type ID] =&amp;nbsp; , //[(h)Sort Key] = {"=aggr(max({1}[(h)Sort Key]), [(h)Staff ID])"}, STF_DEMOGRPHCS_FLAG={'Y'}&amp;nbsp;&amp;nbsp; //[(h)Sort Key]={'count(Aggr(MAX([(h)Sort Key]),[(h)Staff ID]))'} &amp;gt;} DISTINCT [(h)Staff ID]) Cn you please guid me how to reach my requirment that is instead of 72 i am getting value 99&amp;nbsp; for contract employees. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 07:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISSUE-using-Class-function-and-removing-duplicate-staff-ids/m-p/969831#M332170</guid>
      <dc:creator />
      <dc:date>2015-11-24T07:31:16Z</dc:date>
    </item>
  </channel>
</rss>

