<?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: Historization in QlikView - again... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739135#M676266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason I make it so complex is that our database simply does not provide the data I need to display:&lt;/P&gt;&lt;P&gt;-&amp;gt; The day an employee leaves, we delete all associated data in the database - we still know he was here,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; but nothing more - I cannot tell which area he worked in before he left. That data is also deleted for the past,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so someone who left virtually never belonged to any specific area ...&lt;/P&gt;&lt;P&gt;&amp;lt;-&amp;gt; I need to show the areas, however, because otherwise there would be no value in having that info - the objective is to identify the areas with the greatest fluctuation.&lt;/P&gt;&lt;P&gt;-&amp;gt; Partial reload would be great, but if I understand it correctly, that would not touch the personell_numbers (that would be my keyfield) which are already there, correct? - so they would keep their leaving_date of '31.12.2100' or so which they had earlier - assuming their leaving_date was not known when they joined. I need to update that with the date that they disappeared from the database.&lt;/P&gt;&lt;P&gt;&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>Thu, 10 Jul 2014 07:07:15 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-07-10T07:07:15Z</dc:date>
    <item>
      <title>Historization in QlikView - again...</title>
      <link>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739133#M676264</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 the following requirement:&lt;/P&gt;&lt;P&gt;- From our personell_database, I get the daily status of how many employees we have and when they joined.&lt;/P&gt;&lt;P&gt;- For reasons of functionality, I have to build a parallel database day_by_day&amp;nbsp; based on this.&lt;/P&gt;&lt;P&gt;- Since all employees that I can get from the database are still with us, I just put a static '31.12.2100' as leaving_date.&lt;/P&gt;&lt;P&gt;- On the next day, I load a new status from the database and do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - I have two tables now, one with the status from yesterday and one with the status from today;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - I check which employees are there today who were not there yesterday, those are newbies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; I put today's date as their joining_date and my static '31.12.2100' as leaving_date;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Then I check which employees are no more there today who were yesterday, those are the leavers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; I put today's date as their leaving_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have four tables&lt;/P&gt;&lt;P&gt;- a history (yesterday's status)&lt;/P&gt;&lt;P&gt;- a new LOAD (today's status)&lt;/P&gt;&lt;P&gt;- a small table with leavers (might be 0)&lt;/P&gt;&lt;P&gt;- a small table with newbies (might be 0)&lt;/P&gt;&lt;P&gt;=&amp;gt; I can easily concatenate the newbies to the existing history and thus make a new, slightly bigger one that I can STORE in the old&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one's stead&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; The more problematic part is modifying the records for the leavers: I don't want to simply take them out of the table - that would &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; annull what sense there is and make it no different from what I get from the database; Instead I want to keep them, but replace&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the static far-future leaving_date with today's date.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; Tomorrow I will have to check whether anyone I identify as "leaver" already has a leaving_date so I don't end up overwriting&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it with tomorrow's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is, how can I do this?&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; I think I could do it in two steps:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - First, I would remove the leavers from my history by way of a WHERE NOT EXISTS() clause&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - and then I would add them again from my small leavers_table where they already have a leaving_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody advise me on this or maybe propose an easier way?&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;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 14:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739133#M676264</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-09T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Historization in QlikView - again...</title>
      <link>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739134#M676265</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 think that you have relatively small data set in this case. What is the reason for complexity ? &lt;/P&gt;&lt;P&gt;Anyway, there are two kinds of data: event data (enter/leave), status data. Why don't you just keep incremental reload for events (if needed) and always rebuild status data ?&lt;/P&gt;&lt;P&gt;If you strongly want to do something more intelligent, you can rebuild status data only for those persons that have new events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 21:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739134#M676265</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-09T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Historization in QlikView - again...</title>
      <link>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739135#M676266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason I make it so complex is that our database simply does not provide the data I need to display:&lt;/P&gt;&lt;P&gt;-&amp;gt; The day an employee leaves, we delete all associated data in the database - we still know he was here,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; but nothing more - I cannot tell which area he worked in before he left. That data is also deleted for the past,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so someone who left virtually never belonged to any specific area ...&lt;/P&gt;&lt;P&gt;&amp;lt;-&amp;gt; I need to show the areas, however, because otherwise there would be no value in having that info - the objective is to identify the areas with the greatest fluctuation.&lt;/P&gt;&lt;P&gt;-&amp;gt; Partial reload would be great, but if I understand it correctly, that would not touch the personell_numbers (that would be my keyfield) which are already there, correct? - so they would keep their leaving_date of '31.12.2100' or so which they had earlier - assuming their leaving_date was not known when they joined. I need to update that with the date that they disappeared from the database.&lt;/P&gt;&lt;P&gt;&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>Thu, 10 Jul 2014 07:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Historization-in-QlikView-again/m-p/739135#M676266</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-10T07:07:15Z</dc:date>
    </item>
  </channel>
</rss>

