<?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 Census date headcount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563949#M548446</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;wondered is anyone can help point me in the right direction with this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set data which list all posts (jobs) in an organisation since 2008 and the post holder employed in each, within this is included two fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post start date&lt;/P&gt;&lt;P&gt;post leaving date (be blank if the person is still in post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able have a selection list of the census dates (e.g. 1st April 2008,1 April 2009,1 April 2010, 1 April 2011 etc) and use this to filter the graphs/tables as to who was employed on the census date selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logic of filtering who is employed from these two dates would be:&lt;/P&gt;&lt;P&gt;if 'post start date' is less than or equal to [census date] and 'post leaving date' is more than or equal to [census date] or is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this be something feasible from an expression in the front end or would something need to be generated in the load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 09:57:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-10T09:57:58Z</dc:date>
    <item>
      <title>Census date headcount</title>
      <link>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563949#M548446</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;wondered is anyone can help point me in the right direction with this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set data which list all posts (jobs) in an organisation since 2008 and the post holder employed in each, within this is included two fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post start date&lt;/P&gt;&lt;P&gt;post leaving date (be blank if the person is still in post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able have a selection list of the census dates (e.g. 1st April 2008,1 April 2009,1 April 2010, 1 April 2011 etc) and use this to filter the graphs/tables as to who was employed on the census date selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logic of filtering who is employed from these two dates would be:&lt;/P&gt;&lt;P&gt;if 'post start date' is less than or equal to [census date] and 'post leaving date' is more than or equal to [census date] or is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this be something feasible from an expression in the front end or would something need to be generated in the load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 09:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563949#M548446</guid>
      <dc:creator />
      <dc:date>2014-02-10T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Census date headcount</title>
      <link>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563950#M548447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to use interval match in the load script, something like this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Jobs:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Employee,Start Date,End Date&lt;/P&gt;
&lt;P&gt;John Smith,3/31/2008,4/2/2010&lt;/P&gt;
&lt;P&gt;Jane Smith,4/1/2008,3/31/2009&lt;/P&gt;
&lt;P&gt;Joe Smith,4/15/2008,&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CensusDate:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Census Date&lt;/P&gt;
&lt;P&gt;4/1/2008&lt;/P&gt;
&lt;P&gt;4/1/2009&lt;/P&gt;
&lt;P&gt;4/1/2010&lt;/P&gt;
&lt;P&gt;4/1/2011&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IntervalMatch:&lt;/P&gt;
&lt;P&gt;IntervalMatch([Census Date])&lt;/P&gt;
&lt;P&gt;LOAD [Start Date], [End Date]&lt;/P&gt;
&lt;P&gt;RESIDENT Jobs;&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;Do not try to get rid of the synthetic key that is created by the interval match--it is perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a working example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563950#M548447</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-10T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Census date headcount</title>
      <link>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563951#M548448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for the example and tip on the load script, this is very helpful! I'm working on this approach now and is looking promising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 16:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Census-date-headcount/m-p/563951#M548448</guid>
      <dc:creator />
      <dc:date>2014-02-10T16:48:58Z</dc:date>
    </item>
  </channel>
</rss>

