<?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: how to take holidays into account to calculate remaining workdays in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534247#M199578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried your answer, it seems the easiest way to solve this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Nov 2013 18:57:15 GMT</pubDate>
    <dc:creator>chriscools</dc:creator>
    <dc:date>2013-11-17T18:57:15Z</dc:date>
    <item>
      <title>how to take holidays into account to calculate remaining workdays</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534242#M199573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a formula to calculate the remaining working days for the current month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&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;SPAN style="font-size: 10pt;"&gt;Is it possible to take holydays, company closing days etcetera into account for the next 12 months?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thanx!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 14:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534242#M199573</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2013-11-16T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to take holidays into account to calculate remaining workdays</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534243#M199574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, just add the list of holidays as additional arguments to Networkdays function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example from the HELP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26')&lt;/SPAN&gt; returns 8 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also examples here in the forum on how to read the holidays in as a table and create the holiday-argument-list from that using a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 14:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534243#M199574</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-16T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to take holidays into account to calculate remaining workdays</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534244#M199575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="_jivemacro_uid_13846162523399347 jive_text_macro jive_macro_code" jivemacro_uid="_13846162523399347"&gt;
&lt;P&gt;Holydays:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/05/2013&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2014&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; chr(39) &amp;amp; Concat(F1,chr(39)&amp;amp;','&amp;amp;chr(39)) &amp;amp; chr(39) as List&lt;/P&gt;
&lt;P&gt;Resident Holydays;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vList=Peek('List');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use vList variable as parameter to &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;NetWorkDays&lt;/SPAN&gt;(StartDate,EndDate,$(vList))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 15:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534244#M199575</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-16T15:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to take holidays into account to calculate remaining workdays</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534245#M199576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Check my post on this...&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5314"&gt;http://community.qlik.com/docs/DOC-5314&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 18:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534245#M199576</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-16T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to take holidays into account to calculate remaining workdays</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534246#M199577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;First use this Set statement in your Script&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Set DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then please&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt; try the code as below&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you consider saturday as Holiday then use 'Sat' in below exp &lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Round((MonthEnd (Today()) - MonthStart(Today()) ) )&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(Floor((MonthEnd (Today()) - MonthStart(Today()) )/7 ) +&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if( num( WeekDay(MonthStart(Today())))+1&amp;lt;= Match('Sat', $(=chr(39) &amp;amp; Replace(DayNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))) and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Match('Sat', $(=chr(39) &amp;amp; Replace(DayNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))) &amp;lt;=num( WeekDay(MonthEnd(Today())))+1 ,1,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here i used current month i.e today() , you can replace by the date field for every month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please let me know if there is anything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Yusuf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 06:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534246#M199577</guid>
      <dc:creator />
      <dc:date>2013-11-17T06:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to take holidays into account to calculate remaining workdays</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534247#M199578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried your answer, it seems the easiest way to solve this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 18:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-take-holidays-into-account-to-calculate-remaining/m-p/534247#M199578</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2013-11-17T18:57:15Z</dc:date>
    </item>
  </channel>
</rss>

