<?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 How to Find LastWorkDay with different holiday lists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271518#M399927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need Help!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 2 tables see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country, Date&lt;/P&gt;&lt;P&gt;US, 30-12-2016&lt;BR /&gt;Canada, 01-01-2017&lt;BR /&gt;Italy, 30-12-2017&lt;BR /&gt;US, 27-05-2017&lt;BR /&gt;US, 23-11-2017&lt;BR /&gt;Italy,05-01-2017&lt;BR /&gt;US, 03-07-2017&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country, Tolerance&lt;BR /&gt;US, 2&lt;BR /&gt;Canada, 3&lt;BR /&gt;Italy, 1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Country, Holidays&lt;/P&gt;&lt;P&gt;US, 02-01-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;US&lt;/SPAN&gt;, 29-05-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;US&lt;/SPAN&gt;, 04-07-2017&lt;/P&gt;&lt;P&gt;US, 04-09-2017&lt;/P&gt;&lt;P&gt;US, 23-11-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;US&lt;/SPAN&gt;,24-11-2017&lt;/P&gt;&lt;P&gt;US, 25-12-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Canada, 01-01-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 20-02-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 14-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 22-05-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 01-07-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;,07-08-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 04-09-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, 09-10-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, 25-12-2017&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Italy, 01-01-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 06-01-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 06-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 17-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 25-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;,01-05-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 02-06-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 15-08-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 25-12-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want holidays in variable the use this:&lt;/P&gt;&lt;P&gt;Set vUS= '02-01-2017', '29-05-2017', 04-07-2017, '04-09-2017', '23-11-2017', '24-11-2017', '25-12-2017';&lt;/P&gt;&lt;P&gt;Set vCanada= '01-01-2017', '20-02-2017', '14-04-2017', '22-05-2017', '01-07-2017','07-08-2017', '04-09-2017', '09-10-2017', '25-12-2017';&lt;/P&gt;&lt;P&gt;Set vItaly= '01-01-2017', '06-01-2017', '06-04-2017', '17-04-2017', '25-04-2017','01-05-2017', '02-06-2017', '15-08-2017', '25-12-2017';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in Date field I want to add Tolerance days. So here I want Weekends and holidays excluded from the New Date field, So the problem is I have multiple list of Holiday based on the Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conditions: If the Date is on Weekends or Holiday than Date will start from Next Working Day.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final outcome from upper tables I want this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Country, Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;US, 04-01-2016 &lt;STRONG&gt;(Here I have excluded [Sat,Sun-Weekends],Mon(Holiday),[Fri,Mon-Tolerance])&lt;/STRONG&gt;&lt;BR /&gt;Canada, 05-01-2017 &lt;STRONG&gt;(Here Date is on Sun so It will starts from Mon- So I have excluded [Mon,Tue,Wed])&lt;/STRONG&gt;&lt;BR /&gt;Italy, 30-12-2017&lt;STRONG&gt; (Here I have excluded &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[Sat,Sun-Weekends],[Fri-&lt;SPAN style="font-size: 13.3333px;"&gt;Tolerance&lt;/SPAN&gt;])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;US, 27-05-2017&lt;STRONG&gt; (Here Date is on Sat so it will start from Tue because Mon has holiday-[Tue,Wed- Tolerance])&lt;/STRONG&gt;&lt;BR /&gt;US, 29-11-2017&lt;STRONG&gt; (Here Date is on holiday[Thr] and it will also skip [Fri-(Holiday)] and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[Sat,Sun-Weekends] it will start from Mon-[Mon,Tue-Tolerance])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Italy,09-01-2017 &lt;STRONG&gt;(Here [Fri-Holiday] and [Sat,Sun-&lt;SPAN style="font-size: 13.3333px;"&gt;Weekends&lt;/SPAN&gt;]. So I have excluded [Thr- Tolerance])&lt;/STRONG&gt;&lt;BR /&gt;US, 06-07-2017&lt;STRONG&gt; (Here [Tue-Holiday]&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;. So I have excluded [Mon,Wed- Tolerance])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 05:44:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-16T05:44:09Z</dc:date>
    <item>
      <title>How to Find LastWorkDay with different holiday lists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271518#M399927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need Help!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 2 tables see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country, Date&lt;/P&gt;&lt;P&gt;US, 30-12-2016&lt;BR /&gt;Canada, 01-01-2017&lt;BR /&gt;Italy, 30-12-2017&lt;BR /&gt;US, 27-05-2017&lt;BR /&gt;US, 23-11-2017&lt;BR /&gt;Italy,05-01-2017&lt;BR /&gt;US, 03-07-2017&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country, Tolerance&lt;BR /&gt;US, 2&lt;BR /&gt;Canada, 3&lt;BR /&gt;Italy, 1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Country, Holidays&lt;/P&gt;&lt;P&gt;US, 02-01-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;US&lt;/SPAN&gt;, 29-05-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;US&lt;/SPAN&gt;, 04-07-2017&lt;/P&gt;&lt;P&gt;US, 04-09-2017&lt;/P&gt;&lt;P&gt;US, 23-11-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;US&lt;/SPAN&gt;,24-11-2017&lt;/P&gt;&lt;P&gt;US, 25-12-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Canada, 01-01-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 20-02-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 14-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 22-05-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 01-07-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;,07-08-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;, 04-09-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, 09-10-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Canada&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, 25-12-2017&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Italy, 01-01-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 06-01-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 06-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 17-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 25-04-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;,01-05-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 02-06-2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 15-08-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Italy&lt;/SPAN&gt;, 25-12-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want holidays in variable the use this:&lt;/P&gt;&lt;P&gt;Set vUS= '02-01-2017', '29-05-2017', 04-07-2017, '04-09-2017', '23-11-2017', '24-11-2017', '25-12-2017';&lt;/P&gt;&lt;P&gt;Set vCanada= '01-01-2017', '20-02-2017', '14-04-2017', '22-05-2017', '01-07-2017','07-08-2017', '04-09-2017', '09-10-2017', '25-12-2017';&lt;/P&gt;&lt;P&gt;Set vItaly= '01-01-2017', '06-01-2017', '06-04-2017', '17-04-2017', '25-04-2017','01-05-2017', '02-06-2017', '15-08-2017', '25-12-2017';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in Date field I want to add Tolerance days. So here I want Weekends and holidays excluded from the New Date field, So the problem is I have multiple list of Holiday based on the Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conditions: If the Date is on Weekends or Holiday than Date will start from Next Working Day.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final outcome from upper tables I want this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Country, Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;US, 04-01-2016 &lt;STRONG&gt;(Here I have excluded [Sat,Sun-Weekends],Mon(Holiday),[Fri,Mon-Tolerance])&lt;/STRONG&gt;&lt;BR /&gt;Canada, 05-01-2017 &lt;STRONG&gt;(Here Date is on Sun so It will starts from Mon- So I have excluded [Mon,Tue,Wed])&lt;/STRONG&gt;&lt;BR /&gt;Italy, 30-12-2017&lt;STRONG&gt; (Here I have excluded &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[Sat,Sun-Weekends],[Fri-&lt;SPAN style="font-size: 13.3333px;"&gt;Tolerance&lt;/SPAN&gt;])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;US, 27-05-2017&lt;STRONG&gt; (Here Date is on Sat so it will start from Tue because Mon has holiday-[Tue,Wed- Tolerance])&lt;/STRONG&gt;&lt;BR /&gt;US, 29-11-2017&lt;STRONG&gt; (Here Date is on holiday[Thr] and it will also skip [Fri-(Holiday)] and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[Sat,Sun-Weekends] it will start from Mon-[Mon,Tue-Tolerance])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Italy,09-01-2017 &lt;STRONG&gt;(Here [Fri-Holiday] and [Sat,Sun-&lt;SPAN style="font-size: 13.3333px;"&gt;Weekends&lt;/SPAN&gt;]. So I have excluded [Thr- Tolerance])&lt;/STRONG&gt;&lt;BR /&gt;US, 06-07-2017&lt;STRONG&gt; (Here [Tue-Holiday]&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;. So I have excluded [Mon,Wed- Tolerance])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 05:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271518#M399927</guid>
      <dc:creator />
      <dc:date>2016-12-16T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find LastWorkDay with different holiday lists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271519#M399928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to forget:&lt;/P&gt;&lt;P&gt;1st Table is Raw Data&lt;/P&gt;&lt;P&gt;2nd Table is Tolerance Table&lt;/P&gt;&lt;P&gt;3rd Table is Holiday Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be note that Raw data has 10,00,000 records and I have 5 to 6 Country holiday lists as well. So create the code according to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 05:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271519#M399928</guid>
      <dc:creator />
      <dc:date>2016-12-16T05:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find LastWorkDay with different holiday lists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271520#M399929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this :&lt;/P&gt;&lt;P&gt;Use the&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor523"&gt;&lt;/A&gt;&lt;A name="networkdays"&gt;&lt;/A&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;/P&gt;&lt;P&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;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;networkdays ('2007-02-19', '2007-03-01')&lt;/SPAN&gt; returns 9&amp;nbsp; &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&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With an if condition so that it selectively takes the holiday according to the country&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 06:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271520#M399929</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-12-16T06:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find LastWorkDay with different holiday lists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271521#M399930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here I have One Date and Tolerance Days and from that I required Next Workday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using LastWorkDate Function and Script as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set US= '01/02/2017', '05/29/2017', '07/04/2017', '09/04/2017', '11/23/2017', '11/24/2017', '12/25/2017', '12/26/2017', '12/27/2017', '12/28/2017', '12/29/2017';&lt;/P&gt;&lt;P&gt;Set Canada= '01/01/2017', '02/20/2017', '04/14/2017', '05/22/2017', '07/01/2017','08/07/2017', '09/04/2017', '10/09/2017', '12/25/2017';&lt;/P&gt;&lt;P&gt;Set Italy= '10/12/2016', '01/01/2017', '01/06/2017', '04/16/2017', '04/17/2017', '04/25/2017', '05/01/2017', '06/02/2017', '08/15/2017','11/1/2017','12/08/2017','12/25/2017', '12/26/2017';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Country, Date&lt;/P&gt;&lt;P&gt;US, 30-12-2016&lt;/P&gt;&lt;P&gt;Canada, 01-01-2017&lt;/P&gt;&lt;P&gt;Italy, 30-12-2017&lt;/P&gt;&lt;P&gt;US, 27-05-2017&lt;/P&gt;&lt;P&gt;US, 23-11-2017&lt;/P&gt;&lt;P&gt;Italy,05-01-2017&lt;/P&gt;&lt;P&gt;US, 03-07-2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Country, Tolerance&lt;/P&gt;&lt;P&gt;US, 2&lt;/P&gt;&lt;P&gt;Canada, 3&lt;/P&gt;&lt;P&gt;Italy, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Country,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Tolerance,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LastWorkDate(Date,[Tolerance],if(Country='Italy',$(Italy),If(Country='US',$(US),$(Canada)))) as NewDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;Drop Table &lt;SPAN style="font-size: 13.3333px;"&gt;Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am getting an error in NewDate Line. Is there any solution in that line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 07:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Find-LastWorkDay-with-different-holiday-lists/m-p/1271521#M399930</guid>
      <dc:creator />
      <dc:date>2016-12-19T07:35:13Z</dc:date>
    </item>
  </channel>
</rss>

