<?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: Re: Problem with personell data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483688#M180743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are perfectly right. If it were possible to fix that error in my script so that that pumped-up table contains records for any specific employee only up to his/her end_date.&lt;/P&gt;&lt;P&gt;Unfortunately it is very fickle - beside the fact that I don't have time - handling personell data.&lt;/P&gt;&lt;P&gt;Still, I will try to draft up a small Excel file with a few fake employee records.&lt;/P&gt;&lt;P&gt;I will also attach the code I currently use to "pump up" that table. You will see that currently, one record per day is generated for every employee from his/her start_date up to TODAY(). Using his/her respective end_date would lead to another kind of difficulty.&lt;/P&gt;&lt;P&gt;I guess, though, that if it were possible to fix this in the script, the diagram would remain relatively simple and I wouldn't have to make the formula for the nr. of employees overly complicated by accounting for the end_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O - the outcome: Well, it's pretty clear: To be able to combine this table with info from another (where there is a record for every day when a specific employee was out sick), I want to have a table with one record per day for every employee like I have it,&lt;/P&gt;&lt;P&gt;but ideally only between the start_date and end_date of every single employee (unless the end_date is in 2099 or so)&lt;/P&gt;&lt;P&gt;=&amp;gt; Then I would not face the problem of counting in February the employees who left us in January, but are still in the table and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 07:47:33 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-09-27T07:47:33Z</dc:date>
    <item>
      <title>Problem with personell data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483686#M180741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a logical dilemma with the display of personell data:&lt;/P&gt;&lt;P&gt;- I want to display the nr. of employees we had in a given month&lt;/P&gt;&lt;P&gt;- Every employee has, in his/her masterdata_record, an end_date, that is, the date until which he/she was with the company.&lt;/P&gt;&lt;P&gt;- I am querying the database such as it currently is&lt;/P&gt;&lt;P&gt;=&amp;gt; Naturally, I can account for only those employees who are still in there (which is seemingly (partly) independent of whether the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; employee is still with the company)&lt;/P&gt;&lt;P&gt;- In the script, I "pump up" that masterdata_table so that every employee has one rec. per day between his/her start_date and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end_date (or today in case the end_date is sth. like '31.12.2099') - that way, I can easily tell how many employees we had in a&lt;BR /&gt;&amp;nbsp;&amp;nbsp; given month by using a COUNT(DISTINCT PN) - the DISTINCT is necessary in the new pumped-up table.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; There comes the difficulty:&lt;/P&gt;&lt;P&gt;- Say, my figures for January are correct (which they are because I have a filter in the script to SELECT only those emps whose end_date is after YEARSTART(TODAY()) ), we had a certain nr. of employees then and there are no more in the database.&lt;/P&gt;&lt;P&gt;=&amp;gt; In February, the employees who have left in the meantime would still be in the masterdata table and would be counted, so I'd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; report too high a nr. of employees.&lt;/P&gt;&lt;P&gt;=&amp;gt; In March, it would be even worse&lt;/P&gt;&lt;P&gt;=&amp;gt; and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The short question behind the long story: How can I make my expression flexible enough so that in February, it will display only those emps who were still with the company in February etc.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 15:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483686#M180741</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-09-26T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with personell data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483687#M180742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If an employee stops working in February, she should have an end date in February, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you count the employee in March then? Your 'pump up' table script should not create records for March then, as far as I understood what you've written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I don't really get what your issue is, I can (again) only suggest that you create a small sample app that demonstrates your issue, so we can see your input data, your script and the charts you created to analyze the data.&lt;/P&gt;&lt;P&gt;Don't forget to describe your expected outcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 16:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483687#M180742</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-26T16:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with personell data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483688#M180743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are perfectly right. If it were possible to fix that error in my script so that that pumped-up table contains records for any specific employee only up to his/her end_date.&lt;/P&gt;&lt;P&gt;Unfortunately it is very fickle - beside the fact that I don't have time - handling personell data.&lt;/P&gt;&lt;P&gt;Still, I will try to draft up a small Excel file with a few fake employee records.&lt;/P&gt;&lt;P&gt;I will also attach the code I currently use to "pump up" that table. You will see that currently, one record per day is generated for every employee from his/her start_date up to TODAY(). Using his/her respective end_date would lead to another kind of difficulty.&lt;/P&gt;&lt;P&gt;I guess, though, that if it were possible to fix this in the script, the diagram would remain relatively simple and I wouldn't have to make the formula for the nr. of employees overly complicated by accounting for the end_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O - the outcome: Well, it's pretty clear: To be able to combine this table with info from another (where there is a record for every day when a specific employee was out sick), I want to have a table with one record per day for every employee like I have it,&lt;/P&gt;&lt;P&gt;but ideally only between the start_date and end_date of every single employee (unless the end_date is in 2099 or so)&lt;/P&gt;&lt;P&gt;=&amp;gt; Then I would not face the problem of counting in February the employees who left us in January, but are still in the table and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 07:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483688#M180743</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-09-27T07:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with personell data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483689#M180744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that this problem is solved.&lt;/P&gt;&lt;P&gt;I have yet to finally check the data with a colleague from HR, but it does look more plausible now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 12:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-personell-data/m-p/483689#M180744</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-04T12:45:02Z</dc:date>
    </item>
  </channel>
</rss>

