<?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 issue regarding start and end dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738129#M473872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 12:50:31 GMT</pubDate>
    <dc:creator>Amphan</dc:creator>
    <dc:date>2014-10-16T12:50:31Z</dc:date>
    <item>
      <title>Set Analysis issue regarding start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738127#M473870</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;I have a problem that I cant get my head around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with employees and dates when they started and when they left. Some employees have several start and end dates as they can be temporary hires that come and go. An example is this list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;employee_data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp_id, emp_startdate, emp_enddate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp004, 2011-03-01, 2012-02-28&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp005, 2011-06-01, 2012-12-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp002, 2012-02-01, 2999-12-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp003, 2012-05-01, 2013-06-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp001, 2013-01-01, 2999-12-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp004, 2013-01-01, 2999-12-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp006, 2013-05-01, 2013-12-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp005, 2013-06-01, 2999-12-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp003, 2013-06-02, 2013-11-15&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp003, 2013-11-16, 2014-05-31&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about counting how many people have quit for the last time in a specific year, ie. how many emp_ids has an enddate in 2013 and no later startdate than the highest enddate in 2013 for that emp_id, or the opposite, how many people was hired for the first time during 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to solve this with set analysis but havent been able to get it right. Please see the attached qlikview document for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ola &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738127#M473870</guid>
      <dc:creator>Amphan</dc:creator>
      <dc:date>2014-10-16T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis issue regarding start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738128#M473871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738128#M473871</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-16T12:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis issue regarding start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738129#M473872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-regarding-start-and-end-dates/m-p/738129#M473872</guid>
      <dc:creator>Amphan</dc:creator>
      <dc:date>2014-10-16T12:50:31Z</dc:date>
    </item>
  </channel>
</rss>

