<?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: Data from database - not populated on weekends in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548710#M204963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aadil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found a way. Have yet to test it, though.&lt;/P&gt;&lt;P&gt;I don't even have to actually generate those records:&lt;/P&gt;&lt;P&gt;- That info from the database is lateron joined to another table&lt;/P&gt;&lt;P&gt;- That table is already "blown up" to have one record per day per employee&lt;/P&gt;&lt;P&gt;=&amp;gt; I can just sort it in a RESIDENT LOAD and then use PREVIOUS to populate that field on every "saturday_record" with a 0 or 1, whatever was there in the record above, which must then be Friday.&lt;/P&gt;&lt;P&gt;Hope it works. I'll be back with a short debrief.&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>Wed, 11 Dec 2013 08:41:25 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-12-11T08:41:25Z</dc:date>
    <item>
      <title>Data from database - not populated on weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548705#M204958</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;in one diagram where I want to display employee_presence data, I &lt;/P&gt;&lt;P&gt;- the "nr_of_emps_associated_with_an_area" as the nr. of emps who should be present - which isn't quite correct because the fact&lt;BR /&gt;&amp;nbsp;&amp;nbsp; that they belong to an area doesn't say anything about their being present, but that's how it is currently.&lt;/P&gt;&lt;P&gt;- The nr. of reports I find in the database of an employee reporting in sick as just that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; My current problem is: The employees are of course associated with an area every day from Mon-Sun&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; The out_sick_reports in the database are populated only from Mon to Sat&lt;/P&gt;&lt;P&gt;=&amp;gt; If I were to display six days in a week, as I usually do (for we work quite often on Sat), I would end up with 100% presence every Sat, which of course would mess up my quota&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; What I want to do now to fix this is display the same nr. of sick_reports that I had on a Fri for the Sat of that week.&lt;/P&gt;&lt;P&gt;=&amp;gt; I guess I would have to do that in the script since I cannot use set_expressions in a diagram to shift the dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me do this?&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>Mon, 09 Dec 2013 16:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548705#M204958</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-09T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data from database - not populated on weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548706#M204959</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 you post a sample app. That way it will be easier...&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aadil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 06:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548706#M204959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T06:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data from database - not populated on weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548707#M204960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aadil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample app in this case is a bit tricky - I'll have to build one from scratch as this chart is about personell data. I'll do that some time today or tonight on the train.&lt;/P&gt;&lt;P&gt;The problem is actually quite simple:&lt;/P&gt;&lt;P&gt;- My presence_data (the nr._of_emps_in_a_given_area) is available on Saturdays&lt;/P&gt;&lt;P&gt;- The data in the personell_database of employees reporting out sick is not&lt;/P&gt;&lt;P&gt;=&amp;gt; Of course, when I basically subtract the latter from the former and divide it by the former (A-B / A),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I get a quota of 100% which messes up my average for the week.&lt;/P&gt;&lt;P&gt;I'll have a look at the table and see if I can do it myself - I think the data at this point is sorted by date and there is one record per day - per employee. The only problem is there isn't any data for Saturdays - the records are not in the database, so I have to create those records in the QlikView script.&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>Tue, 10 Dec 2013 09:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548707#M204960</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-10T09:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data from database - not populated on weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548708#M204961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, you got it right. That should work. Good Luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 12:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548708#M204961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data from database - not populated on weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548709#M204962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I guess - I hope so ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is merely: How do I generate additional records in a QlikView_script?&lt;/P&gt;&lt;P&gt;I know it's in the help_file, I just don't know the word to look for.&lt;/P&gt;&lt;P&gt;Can you help me there?&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>Tue, 10 Dec 2013 13:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548709#M204962</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-10T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data from database - not populated on weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548710#M204963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aadil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found a way. Have yet to test it, though.&lt;/P&gt;&lt;P&gt;I don't even have to actually generate those records:&lt;/P&gt;&lt;P&gt;- That info from the database is lateron joined to another table&lt;/P&gt;&lt;P&gt;- That table is already "blown up" to have one record per day per employee&lt;/P&gt;&lt;P&gt;=&amp;gt; I can just sort it in a RESIDENT LOAD and then use PREVIOUS to populate that field on every "saturday_record" with a 0 or 1, whatever was there in the record above, which must then be Friday.&lt;/P&gt;&lt;P&gt;Hope it works. I'll be back with a short debrief.&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>Wed, 11 Dec 2013 08:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-from-database-not-populated-on-weekends/m-p/548710#M204963</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-11T08:41:25Z</dc:date>
    </item>
  </channel>
</rss>

