<?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: Personell data, holidays - formula help needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524461#M555238</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;maybe I can firstly have two separate LOAD statements - one for the holiday_budget, one for the days_taken - and then do two RESIDENT loads and join those`using a LEFT JOIN?&lt;/P&gt;&lt;P&gt;The question is - those two tables should be joined on the PN and the budget_type - so I have to rename the budget_type to have the same name in both tables, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 15:17:31 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-07-25T15:17:31Z</dc:date>
    <item>
      <title>Personell data, holidays - formula help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524460#M555237</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 need some formula help here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ultimate goal is to construct a diagram with the nr. of days an employee has neither taken nor planned yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- When I select a personell_number, I get, from a SELECT on a database table, a number of days - that person's "holiday contingent" at year's start.&lt;/P&gt;&lt;P&gt;- &amp;lt;=&amp;gt; The thing is, these days are distributed: There are three or four (it varies) different budgets (another field) and I have to add them all up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In another table, I have the days taken until today and in a third table, I have the days that person has already planned.&lt;/P&gt;&lt;P&gt;- The third table (days planned) is easy as I have to filter on one specific&amp;nbsp; budget anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;=&amp;gt; The trick in the second table (days taken) is: I have several budgets again - a few more than in the first table. I have to select the two (or three or four) that are "selectable" in the first table, then I get the correct number - but I have to do it on scripting level as I want to build a diagram - so set_analysis is out of bounds anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me there? I will start on the first part - I can do a RESIDENT load and sum up the days a given employee has.&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>Thu, 25 Jul 2013 13:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524460#M555237</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-25T13:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Personell data, holidays - formula help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524461#M555238</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;maybe I can firstly have two separate LOAD statements - one for the holiday_budget, one for the days_taken - and then do two RESIDENT loads and join those`using a LEFT JOIN?&lt;/P&gt;&lt;P&gt;The question is - those two tables should be joined on the PN and the budget_type - so I have to rename the budget_type to have the same name in both tables, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524461#M555238</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-25T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Personell data, holidays - formula help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524462#M555239</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;that seems to WORK. Yippieh!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O_O - not quite:&lt;/P&gt;&lt;P&gt;Probably due to those JOINs - I have joined the RESIDENT loads from three tables now for&lt;/P&gt;&lt;P&gt;- the entire holiday_budget&lt;/P&gt;&lt;P&gt;- days_taken and&lt;/P&gt;&lt;P&gt;- days_planned&lt;/P&gt;&lt;P&gt;I can no more get the correct nr. of days - still, when I select a PN, a number of budgets are "selectable" and several numbers of days which, summed up, give me the correct value - but when I sum them up in a textbox, I get much, much more. Somewhere along the way, the records have multiplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.:&lt;/P&gt;&lt;P&gt;...and it is logical that they would &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; In the first table (holiday budget), there are, say, three records (for three different budgets) with three values - in the other tables (days taken and days planned), there is one record for every day and I have to count date_values.&lt;/P&gt;&lt;P&gt;I will do some more trying around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524462#M555239</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-25T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Personell data, holidays - formula help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524463#M555240</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;now I'm almost there. I introduced one more RESIDENT load for the table where I have days_taken, summing up by PN and budget_type and counting the respective nr. of days.&lt;/P&gt;&lt;P&gt;I do the same with the third table where I have days_planned.&lt;/P&gt;&lt;P&gt;Now I have one last problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the very first table, I have three records - three different budgets with different nrs of days which I have to sum up. I could do one more RESIDENT load and sum these up beforehand, but I need all three budgets to filter (through the JOIN) the second table - that one has more budget_types.&lt;/P&gt;&lt;P&gt;I do a RESIDENT load again for the third table and get the correct value - but when I join this to what I have, one record becomes three records (three budget_types) and I have three times the nr of days.&lt;/P&gt;&lt;P&gt;Nr_lines is 1 when it should be 3 - because I have 3 different budget_types in the original table.&lt;/P&gt;&lt;P&gt;The trouble is, in the LOAD statement I don't yet "know" there are 3&amp;nbsp; budget_types - there might be more, depending on which PN I select.&lt;/P&gt;&lt;P&gt;Somehow I have to reduce it somewhere along the way - after I have done all that I need the different budget_types for - to just one record per PN.&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, 26 Jul 2013 10:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Personell-data-holidays-formula-help-needed/m-p/524463#M555240</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-26T10:53:38Z</dc:date>
    </item>
  </channel>
</rss>

