<?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: NetWorkDays function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766317#M272322</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 you can have the list of Holidays stored in a variable and just use the variable in the NetWorkday function as this&lt;/P&gt;&lt;P&gt;SET vHolidays = "'20-Jan-2015','03-01-2015','09-01-2015'";&lt;/P&gt;&lt;P&gt;At the start &amp;amp; end of the date for holiday use double quote and single quote &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your NetWorkDays function you have&lt;/P&gt;&lt;P&gt;=NetWorkdays('01-01-2015','20-01-2015',$(vHolidays))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give that a try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 14:44:17 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2015-01-26T14:44:17Z</dc:date>
    <item>
      <title>NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766309#M272314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have 2 dates : DateA = 18/12/2014&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateB = 13/01/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (in format dd/mm/yyyy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do DateB-DateA, I get 26&amp;nbsp;&amp;nbsp;&amp;nbsp; which is ok.&amp;nbsp; (31-18) + 13 = 26&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do NetWorkDays(DateA,DateB), I expect to obtain 18 because between Thursday 18th and Friday 13rd, there are 4 weekends so 8 weekend days, so I should obtain 26-8 = 18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get 19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does NetworkDays include DateA and DateB in the count and so is not equal to :&amp;nbsp; DateB-DateA - number of Sundays &amp;amp;Saturdays ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other question:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would like to add some days in the holiday field. Those days are fixed every year (25th of December, 1st of January) is there a way to tell QV I want those days as holidays without having to write a list of those days for every year in my Qlikview (25/12/2000, 25/12/2001,...25/12/2015...) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 13:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766309#M272314</guid>
      <dc:creator />
      <dc:date>2015-01-26T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766310#M272315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes the 2 dates are included&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 13:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766310#M272315</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-26T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766311#M272316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;The start and end days are both included in the networkdays calculation.&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;This is from the F1 help on networkdays.&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;networkdays (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;start:date, end_date {, holiday}&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns the number of working days (Monday-Friday) between and including &lt;SPAN class="Italic"&gt;start_date&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;end_date&lt;/SPAN&gt; taking into account any optionally listed &lt;SPAN class="Italic"&gt;holidays&lt;/SPAN&gt;. All parameters should be valid dates or timestamps. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 13:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766311#M272316</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-01-26T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766312#M272317</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;As mentioned above your answer is correct.&lt;/P&gt;&lt;P&gt;NetWorkdays includes the start and end date in calculation of NetWorkDays.&lt;/P&gt;&lt;P&gt;Another example is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NetWorkDays ('2015-01-19', '2015-01-23') &lt;/P&gt;&lt;P&gt;this should and will return 5 days, hence your &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NetWorkDays ('2014-12-18 ', '2015-01-13') should return 19 for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 13:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766312#M272317</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-01-26T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766313#M272318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you for your help :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have another question:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I would like to add some days in the holiday field. Those days are fixed every year (25th of December, 1st of January) is there a way to tell QV I want those days as holidays without having to write a list of those days for every year in my Qlikview (25/12/2000, 25/12/2001,...25/12/2015...) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Thanks again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766313#M272318</guid>
      <dc:creator />
      <dc:date>2015-01-26T14:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766314#M272319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is not possible, at least with the function NetWorkDays.&lt;BR /&gt; &lt;BR /&gt; You could try to use this function to avoid saturday and sunday and then create&lt;BR /&gt; &lt;BR /&gt; another function to remove your holidays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766314#M272319</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-26T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766315#M272320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that's a pity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766315#M272320</guid>
      <dc:creator />
      <dc:date>2015-01-26T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766316#M272321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please mark the answers ... if you want ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766316#M272321</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-26T14:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766317#M272322</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 you can have the list of Holidays stored in a variable and just use the variable in the NetWorkday function as this&lt;/P&gt;&lt;P&gt;SET vHolidays = "'20-Jan-2015','03-01-2015','09-01-2015'";&lt;/P&gt;&lt;P&gt;At the start &amp;amp; end of the date for holiday use double quote and single quote &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your NetWorkDays function you have&lt;/P&gt;&lt;P&gt;=NetWorkdays('01-01-2015','20-01-2015',$(vHolidays))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give that a try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766317#M272322</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-01-26T14:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766318#M272323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gabriel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can do what you suggest. What I would like to do is to specify a date without the year, eg. "25/12" for Christmas without having to write it for each year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766318#M272323</guid>
      <dc:creator />
      <dc:date>2015-01-26T14:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766319#M272324</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 for simplicity it's best to include Year or you'll get to a stage of nesting variables to accommodate for current year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766319#M272324</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-01-26T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766320#M272325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5741"&gt;http://community.qlik.com/docs/DOC-5741&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/766320#M272325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-26T16:13:31Z</dc:date>
    </item>
  </channel>
</rss>

