<?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 Selecting All employees according to user selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436562#M162827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table Employees is historical, having all employees in the organization at each month/year.&amp;nbsp; I need to perform a calculation using the headcount at the month/year selected by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if the user selects July, 2012 the report must count the employees dated at July,2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to count is not difficult, since I have a record counter variable having a 1 (EmpRecordCtr) which can be summed.&amp;nbsp; The challenge is how to make a set of the employees data for the specific Month/Year selected by the user.&amp;nbsp; I'm researching on using Set Analysis.&amp;nbsp; Each record is dated with it's corresponding month/year.&amp;nbsp; See image.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22437" class="jive-image" alt="Employees Table.JPG" src="/legacyfs/online/22437_Employees Table.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 21:45:12 GMT</pubDate>
    <dc:creator>wgonzalez</dc:creator>
    <dc:date>2012-09-24T21:45:12Z</dc:date>
    <item>
      <title>Selecting All employees according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436562#M162827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table Employees is historical, having all employees in the organization at each month/year.&amp;nbsp; I need to perform a calculation using the headcount at the month/year selected by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if the user selects July, 2012 the report must count the employees dated at July,2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to count is not difficult, since I have a record counter variable having a 1 (EmpRecordCtr) which can be summed.&amp;nbsp; The challenge is how to make a set of the employees data for the specific Month/Year selected by the user.&amp;nbsp; I'm researching on using Set Analysis.&amp;nbsp; Each record is dated with it's corresponding month/year.&amp;nbsp; See image.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22437" class="jive-image" alt="Employees Table.JPG" src="/legacyfs/online/22437_Employees Table.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436562#M162827</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2012-09-24T21:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting All employees according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436563#M162828</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; Can use count(EmployeeID) instead of EmpRecordCtr for month/year selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For distinct employee count means, use coun(Distinct EmploeeID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 22:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436563#M162828</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-24T22:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting All employees according to user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436564#M162829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the user clicks a Month/Year in the multibox QV automatically associates the headcount to the rest of the data, then adjusting it.&amp;nbsp; I need the full headcount free of association with the rest of the data to make the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For example:&lt;/EM&gt; The user clicks on July 2012, there are 1,000 employees on board but only 800 have absenteeism transactions.&amp;nbsp; QV will associate 800 employees, but I need to make the calculation with the full 1,000.&amp;nbsp; To overcome that I used this expression with set analysis &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EmpRecordCtr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt; wish uses the full set of all employees in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interesting thing happens when the headcount of other months were added into the data.&amp;nbsp; The user clicks August 2012 when there was 1,200 employees and 700 having absenteeism transactions.&amp;nbsp; Now I need to perform the calculation with 1,200 employees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I modify the expression to be flexible to selection of different periods in time?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 15:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-All-employees-according-to-user-selection/m-p/436564#M162829</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2012-09-26T15:41:06Z</dc:date>
    </item>
  </channel>
</rss>

