<?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 Calculate working days between to dates during load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317486#M1200686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a newbie in qlikview and i've this scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' ve a table with to dates: &lt;I&gt;&lt;B&gt;enddate&lt;/B&gt;&lt;/I&gt; and &lt;I style="font-weight: bold;"&gt;startdate;&lt;/I&gt; I &lt;I style="font-weight: bold;"&gt;&lt;/I&gt; need to calculate the number of working days between the two during load and add a new field with it, how can I do it?&lt;/P&gt;&lt;P&gt;I need to check each date between startdate and enddate to see if it is a working day or a holiday. I tried to use a routine, but I can´t get i to work inside load statement. The holidays are in another table.&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 18:21:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-31T18:21:49Z</dc:date>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317486#M1200686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a newbie in qlikview and i've this scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' ve a table with to dates: &lt;I&gt;&lt;B&gt;enddate&lt;/B&gt;&lt;/I&gt; and &lt;I style="font-weight: bold;"&gt;startdate;&lt;/I&gt; I &lt;I style="font-weight: bold;"&gt;&lt;/I&gt; need to calculate the number of working days between the two during load and add a new field with it, how can I do it?&lt;/P&gt;&lt;P&gt;I need to check each date between startdate and enddate to see if it is a working day or a holiday. I tried to use a routine, but I can´t get i to work inside load statement. The holidays are in another table.&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 18:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317486#M1200686</guid>
      <dc:creator />
      <dc:date>2011-03-31T18:21:49Z</dc:date>
    </item>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317487#M1200688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luis,&lt;BR /&gt;See networkdays() function.&lt;BR /&gt;I never tried it in script, but expect it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 19:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317487#M1200688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T19:07:37Z</dc:date>
    </item>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317488#M1200690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Your tip is almost what I need, but the problem is that I need this to be generic, that is I've the holidays in a table and I need to use this dates. I've seen the networkdays() function and for it to work I need to pass as arguments the holidays. How can I check it agaisnt the days in the holidays table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 09:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317488#M1200690</guid>
      <dc:creator />
      <dc:date>2011-04-01T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317489#M1200692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luis,&lt;/P&gt;&lt;P&gt;If you have a list in separate table, you can concatenate it in a variable, e.g.&lt;BR /&gt;tmp:&lt;BR /&gt;LOAD&lt;BR /&gt;concat(distinct Holiday, ',') as Holidays&lt;BR /&gt;RESIDENT HolidayList;&lt;BR /&gt;LET vHolidayList = peek('Holidays');&lt;BR /&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;And, the expression will be:&lt;BR /&gt;networkdays(startdate, enddate, $(vHolidayList))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 16:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317489#M1200692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-01T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317490#M1200693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks a lot Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was really helpfull.&lt;/P&gt;&lt;P&gt;Best Regardas,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 10:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317490#M1200693</guid>
      <dc:creator />
      <dc:date>2011-04-04T10:29:46Z</dc:date>
    </item>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317491#M1200694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I used your formula above I get a vHolidayList such as: 1/1/2009, 1/1/2010...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I believe to work in the equation it needs to be '1/1/2009', '1/1/2010',...(with the ' signs around each date indicating text)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317491#M1200694</guid>
      <dc:creator>sspringer</dc:creator>
      <dc:date>2012-04-19T20:08:58Z</dc:date>
    </item>
    <item>
      <title>Calculate working days between to dates during load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317492#M1200695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Here is how you can create the single quotes - in the beginning, in the end, and between the values:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;chr&lt;/STRONG&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #4d0000; font-size: 8pt;"&gt;39&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;concat&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008000; font-size: 8pt;"&gt;distinct&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #008000; font-size: 8pt;"&gt;Holiday&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;chr&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #4d0000; font-size: 8pt;"&gt;39&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #4d0000; font-size: 8pt;"&gt;' ,' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;chr&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #4d0000; font-size: 8pt;"&gt;39&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) )&amp;nbsp; &amp;amp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;chr&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #4d0000; font-size: 8pt;"&gt;39&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 00:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-working-days-between-to-dates-during-load/m-p/317492#M1200695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-20T00:28:41Z</dc:date>
    </item>
  </channel>
</rss>

