<?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: holiday Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399552#M487262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't. I don't see why it's not feasible to create a list with the dates of holidays and load that into qlikview. Forget the saturdays and sundays. The networkdays function already considers those. You only need a list with the dates of the holidays. Surely your organisation has such a list somewhere, in an excel file or a database. Load that list into Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// load the holidays in a temporary table as a comma separated list of values&lt;/P&gt;&lt;P&gt;TempHoliday:&lt;/P&gt;&lt;P&gt;Load concat(HolidayDate, ',') as HolidayList from &lt;EM&gt;...somewhere...&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// create a variable with the list of holidays to use in networkdays&lt;/P&gt;&lt;P&gt;LET vHolidayList = peek('HolidayList');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// load the tasks and calculate the net working days per task&lt;/P&gt;&lt;P&gt;Tasks:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;TaskID,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TASKOPENDATE&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TASKCLOSEDDATE&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;networkdays(TASKOPENDATE, TASKCLOSEDDATE, $(vHolidayList)) as NETDAYS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;from &lt;EM&gt;...tasktable...&lt;/EM&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2013 18:19:26 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-01T18:19:26Z</dc:date>
    <item>
      <title>holiday Query</title>
      <link>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399549#M487259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV Consultants,&lt;/P&gt;&lt;P&gt;I have a query.. It's like I NEED TO TAKE OUT NO. OF DAYS REQUIRED TO COMPLETE A TASK.. IT'S HAVING FIELDS - 'TASKOPENDATE' AND 'TASKCLOSEDDATE'.. I HAVE TO TAKE INTO ACCOUNT FOR THE WEEKENDS OR THE BANK HOLIDAYS FALLING IN BETWEEN THAT PERIOD. FOR THAT PURPOSE I' AM HAVING A HOLIDAY LIST IN THE FORM OF EXCEL.&lt;/P&gt;&lt;P&gt;AS OF NOW I' AM SUBTRACTING TASKCLOSEDDATE-TASKOPENDATE AND NOW ALSO NEED TO DEDUCT IF ANY HOLIDAYS FALL IN BETWEEN..&lt;/P&gt;&lt;P&gt;I' am stuck in this issue and if any idea/help of how to get along with this will be appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 16:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399549#M487259</guid>
      <dc:creator />
      <dc:date>2013-03-01T16:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: holiday Query</title>
      <link>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399550#M487260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the networkdays function. It calculates the number of working days between two dates and you can also add holidays as additional arguments so the holidays are considered non-working days too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;networkdays(TASKOPENDATE, TASKCLOSEDDATE, holiday1, holiday2, .... etc) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace holiday1, holiday2 etc with valid numeric dates of the holidays.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 17:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399550#M487260</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-01T17:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: holiday Query</title>
      <link>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399551#M487261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for your reply.. Actually there is a long list of all saturdays and sundays and ofcourse the bank holidays in a year.. So replacing those holidays with numeric dates won't be a feasible process to follow.&lt;/P&gt;&lt;P&gt;I hope you understand my concern!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 17:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399551#M487261</guid>
      <dc:creator />
      <dc:date>2013-03-01T17:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: holiday Query</title>
      <link>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399552#M487262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't. I don't see why it's not feasible to create a list with the dates of holidays and load that into qlikview. Forget the saturdays and sundays. The networkdays function already considers those. You only need a list with the dates of the holidays. Surely your organisation has such a list somewhere, in an excel file or a database. Load that list into Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// load the holidays in a temporary table as a comma separated list of values&lt;/P&gt;&lt;P&gt;TempHoliday:&lt;/P&gt;&lt;P&gt;Load concat(HolidayDate, ',') as HolidayList from &lt;EM&gt;...somewhere...&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// create a variable with the list of holidays to use in networkdays&lt;/P&gt;&lt;P&gt;LET vHolidayList = peek('HolidayList');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// load the tasks and calculate the net working days per task&lt;/P&gt;&lt;P&gt;Tasks:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;TaskID,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TASKOPENDATE&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TASKCLOSEDDATE&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;networkdays(TASKOPENDATE, TASKCLOSEDDATE, $(vHolidayList)) as NETDAYS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;from &lt;EM&gt;...tasktable...&lt;/EM&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/holiday-Query/m-p/399552#M487262</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-01T18:19:26Z</dc:date>
    </item>
  </channel>
</rss>

