<?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: Bank holidays for multiple countries in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121980#M369703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Ah it's true sorry and thanks. My date format is DD/MM/YYY. However, are you sure that networkdays works fine with fields? I've tried the following script just to test:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14719554384154963 jive_text_macro" jivemacro_uid="_14719554384154963"&gt;
&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;
&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;
&lt;P&gt;SET MoneyThousandSep='.';&lt;/P&gt;
&lt;P&gt;SET MoneyDecimalSep=',';&lt;/P&gt;
&lt;P&gt;SET MoneyFormat='#.##0,00 €;-#.##0,00 €';&lt;/P&gt;
&lt;P&gt;SET TimeFormat='h:mm:ss';&lt;/P&gt;
&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;
&lt;P&gt;SET TimestampFormat='DD/MM/YYYY h:mm:ss[.fff]';&lt;/P&gt;
&lt;P&gt;SET MonthNames='ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic';&lt;/P&gt;
&lt;P&gt;SET DayNames='lun;mar;mié;jue;vie;sáb;dom';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;HOLIDAYS:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [START_DATE, END_DATE, HOLIDAY_DAYS&lt;/P&gt;
&lt;P&gt;'1/2/2016', '13/2/2016', '10/2/2016',&lt;/P&gt;
&lt;P&gt;'1/2/2016', '13/2/2016', '11/2/2016',&lt;/P&gt;
&lt;P&gt;'1/2/2016', '13/2/2016', '9/2/2016'];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN(HOLIDAYS)&lt;/P&gt;
&lt;P&gt;LOAD CONCAT(chr(39) &amp;amp; HOLIDAY_DAYS &amp;amp; chr(39), ',') AS HOLIDAYS&lt;/P&gt;
&lt;P&gt;RESIDENT HOLIDAYS;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN(HOLIDAYS)&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT NETWORKDAYS(START_DATE, END_DATE, HOLIDAYS) AS WITH_HOL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; NETWORKDAYS(START_DATE, END_DATE) AS NO_HOL&lt;/P&gt;
&lt;P&gt;RESIDENT HOLIDAYS;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suprisingly, the holidays are not working properly. If I use the field HOLIDAY_DAYS, it only substracts the first day. So, maybe comes as 'NetworkDays' fuction is bad defined or not accept this kind of fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: If I copy exactly what's on the field HOLIDAYS once reloaded: '10/2/2016','11/2/2016','9/2/2016' in the holidays space for the function 'NetWorkdays' it works so maybe the function is not able to read fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 12:32:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-23T12:32:48Z</dc:date>
    <item>
      <title>Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121967#M369690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone and sorry beforehand for my possible spelling mistakes as english is not my main language. I have a problem, I've searched for information to fix it in the community posts and I can't fin a suitable solution for it so here I am explaining it with the hope of someone providing one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's imagine that my data consists on a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;CUSTOMER_DATA&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IDCustomer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CustomerCountry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;StartDate&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I wish to add a new field, obtained in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ServiceTime = NetWorkDays(StartDate, EndDate)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this new field I wish to obtain the bussiness days the service has been active BUT taking into account the holidays for each IDCustomer and each country. I mean, for every IDCustomer there will exist a different number of holidays between their StartDate and their EndDate. If I have and Excel file with all the bank holidays for each country, wich I can load into my script, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;COUNTRY_ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;BANK_HOLIDAY_DATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Poland&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Poland&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I could substract the holidays for every 'ServiceTime' for each 'IDCustomer'? Imagine I have a large number of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121967#M369690</guid>
      <dc:creator />
      <dc:date>2016-08-17T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121968#M369691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Perhaps like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;mapHolidays:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTRY_ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(BANK_HOLIDAY_DATE, ',') as List&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source data...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;GROUP BY COUNTRY_ID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDCustomer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCountry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NetWorkDays(StartDate, EndDate, ApplyMap('mapHolidays',CustomerCountry)) as ServiceTime&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source data...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 09:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121968#M369691</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-17T09:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121969#M369692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thanks for answering! I think that migh solve my problem but I need one step further. When I use the code you provided (thanks again) and there's a country that doesn't have holidays in the list (maybe because there are no bank holidays in that country) so it doesn't appear and it's not calculated. Do you know what to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;BR /&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 10:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121969#M369692</guid>
      <dc:creator />
      <dc:date>2016-08-17T10:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121970#M369693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a country has no bank holidays then it will not be in the mapping table. In that case ApplyMap will put the country name in the networkdays function. Since that's not a valid date it will be ignored by the networkdays function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121970#M369693</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-17T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121971#M369694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I've tried the solution in my code but with no succeed, the bank holidays are not being substacted. Do you have any idea why? And how to fix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is that Networkdays admits the dates only in 'string' format or string variable format and using applymap maybe we're getting a field. No idea how to convert a field into the type thet the function admits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121971#M369694</guid>
      <dc:creator />
      <dc:date>2016-08-18T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121972#M369695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the below link is useful...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1100800"&gt;Re: Using networkdays and public holidays in qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121972#M369695</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-08-18T16:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121973#M369696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks a lot for the contribution. I've already visisted that thread and that's the way I have it implemented now in my app. Tha fact is that I calculate more things and I have a very LARGE ammount of data so the script takes a lot of time plus I need to reload my tool every day several times so I'm searching for a lighter way to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121973#M369696</guid>
      <dc:creator />
      <dc:date>2016-08-18T16:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121974#M369697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the function 'Networkdays' doesn't seem to accept some kinds of inputs at the third condition such as fields. It seem to be only accepting variables. Is there way to make a variable 'dynamic', I mean, like changing it's value for every IDCustomer with the suitable holidays. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 10:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121974#M369697</guid>
      <dc:creator />
      <dc:date>2016-08-22T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121975#M369698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Networkdays will accept fields as well, but (unless you use peek or lookup) only fields that exist in the source table you're loading the data from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 11:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121975#M369698</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-22T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121976#M369699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried to do something like this in first instace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14719371963743315 jive_text_macro" jivemacro_uid="_14719371963743315" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HOLIDAYS:&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTRY_ID,&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCAT(chr(39) &amp;amp; BANK_HOLIDAY_DATE &amp;amp; chr(39),',') AS HOLIDAY_LIST&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM ../../Source&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;GROUP BY COUNTRY_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; 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;TABLE1:&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDCustomer,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCountry,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM ../../Source;&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;LEFT JOIN (TABLE1)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD COUNTRY_ID as CustomerCountry,&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="color: #3d3d3d; line-height: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HOLIDAY_LIST&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;RESIDENT HOLIDAYS;&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;LEFT JOIN (TABLE1)&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD IDCustomer,&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 12pt;"&gt;CustomerCountry,&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="color: #3d3d3d; line-height: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 12pt;"&gt;NetWorkDays(StartDate, EndDate, HOLIDAY_LIST) as ServiceTime&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RESIDENT TABLE1;&lt;/SPAN&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But it doesn't seem to works as it's not substracting the holidays. Do you have any idea what I'm doing wrong? Thank you a lot.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 07:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121976#M369699</guid>
      <dc:creator />
      <dc:date>2016-08-23T07:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121977#M369700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The values in the list are probably not recognized as dates. Make sure the format of the value is the correct date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121977#M369700</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-23T10:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121978#M369701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I thought on first instance but I've tried to format the data in many ways (in the qlikview script) with no success. The dates I use are unformated on the excel file ('General' format)&amp;nbsp; I tried to format each day with date() and with date#() and still don't get the dates correct. Do you know which code must I use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 11:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121978#M369701</guid>
      <dc:creator />
      <dc:date>2016-08-23T11:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121979#M369702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't. The date format is defined in your document which I can't read. Perhaps you can use numbers instead: CONCAT( Num(BANK_HOLIDAY_DATE),&lt;SPAN class="string"&gt;','&lt;/SPAN&gt;) &lt;SPAN class="keyword"&gt;AS&lt;/SPAN&gt; HOLIDAY_LIST&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 11:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121979#M369702</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-23T11:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121980#M369703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Ah it's true sorry and thanks. My date format is DD/MM/YYY. However, are you sure that networkdays works fine with fields? I've tried the following script just to test:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14719554384154963 jive_text_macro" jivemacro_uid="_14719554384154963"&gt;
&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;
&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;
&lt;P&gt;SET MoneyThousandSep='.';&lt;/P&gt;
&lt;P&gt;SET MoneyDecimalSep=',';&lt;/P&gt;
&lt;P&gt;SET MoneyFormat='#.##0,00 €;-#.##0,00 €';&lt;/P&gt;
&lt;P&gt;SET TimeFormat='h:mm:ss';&lt;/P&gt;
&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;
&lt;P&gt;SET TimestampFormat='DD/MM/YYYY h:mm:ss[.fff]';&lt;/P&gt;
&lt;P&gt;SET MonthNames='ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic';&lt;/P&gt;
&lt;P&gt;SET DayNames='lun;mar;mié;jue;vie;sáb;dom';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;HOLIDAYS:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [START_DATE, END_DATE, HOLIDAY_DAYS&lt;/P&gt;
&lt;P&gt;'1/2/2016', '13/2/2016', '10/2/2016',&lt;/P&gt;
&lt;P&gt;'1/2/2016', '13/2/2016', '11/2/2016',&lt;/P&gt;
&lt;P&gt;'1/2/2016', '13/2/2016', '9/2/2016'];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN(HOLIDAYS)&lt;/P&gt;
&lt;P&gt;LOAD CONCAT(chr(39) &amp;amp; HOLIDAY_DAYS &amp;amp; chr(39), ',') AS HOLIDAYS&lt;/P&gt;
&lt;P&gt;RESIDENT HOLIDAYS;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN(HOLIDAYS)&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT NETWORKDAYS(START_DATE, END_DATE, HOLIDAYS) AS WITH_HOL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; NETWORKDAYS(START_DATE, END_DATE) AS NO_HOL&lt;/P&gt;
&lt;P&gt;RESIDENT HOLIDAYS;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suprisingly, the holidays are not working properly. If I use the field HOLIDAY_DAYS, it only substracts the first day. So, maybe comes as 'NetworkDays' fuction is bad defined or not accept this kind of fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: If I copy exactly what's on the field HOLIDAYS once reloaded: '10/2/2016','11/2/2016','9/2/2016' in the holidays space for the function 'NetWorkdays' it works so maybe the function is not able to read fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 12:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121980#M369703</guid>
      <dc:creator />
      <dc:date>2016-08-23T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bank holidays for multiple countries</title>
      <link>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121981#M369704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function can read fields. But I don't know how to make it understand the contents of one field as a list of parameters instead of one parameter. As a workaround you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAYS:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD *,&amp;nbsp;&amp;nbsp; NETWORKDAYS(START_DATE, END_DATE) - NETWORKDAYS(START_DATE, END_DATE, HOLIDAY_DAYS) AS NO_OF_HOLIDAYS_IN_INTERVAL INLINE [START_DATE, END_DATE, HOLIDAY_DAYS&amp;nbsp; &lt;/P&gt;&lt;P&gt;'1/2/2016', '13/2/2016', '10/2/2016',&amp;nbsp; &lt;/P&gt;&lt;P&gt;'1/2/2016', '13/2/2016', '11/2/2016',&amp;nbsp; &lt;/P&gt;&lt;P&gt;'1/2/2016', '13/2/2016', '9/2/2016'];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;NETWORKDAYS:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp; START_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; END_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM(NO_OF_HOLIDAYS_IN_INTERVAL) AS SUM_OFNO_OF_HOLIDAYS_IN_INTERVAL,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NETWORKDAYS(START_DATE, END_DATE) - SUM(NO_OF_HOLIDAYS_IN_INTERVAL) AS WITH_HOL&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp; HOLIDAYS&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp; START_DATE, END_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 16:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bank-holidays-for-multiple-countries/m-p/1121981#M369704</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-24T16:16:21Z</dc:date>
    </item>
  </channel>
</rss>

