<?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: Networking dates excluding weekends and business dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037943#M85518</link>
    <description>&lt;P&gt;worked well. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 20:34:06 GMT</pubDate>
    <dc:creator>mimivan</dc:creator>
    <dc:date>2023-02-14T20:34:06Z</dc:date>
    <item>
      <title>Networking dates excluding weekends and business dates</title>
      <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037380#M85464</link>
      <description>&lt;P&gt;I want to calculate net working dates between 2 dates, start dated(e.g Dec 27 2022) and end dates(Jan 5 2023), which will not count the weekends and holiday on Jan 2.&amp;nbsp; &amp;nbsp; I have a&amp;nbsp; holiday table that save all the holidays on a weekday that should be excluded.&amp;nbsp; How can I add the holiday date list to the&amp;nbsp;NetWorkDays function ?&amp;nbsp; If I cannot, how can i exclude the business days?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let vnetworkdays = NetWorkDays(start_date, end_date);&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 01:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037380#M85464</guid>
      <dc:creator>mimivan</dc:creator>
      <dc:date>2023-02-14T01:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Networking dates excluding weekends and business dates</title>
      <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037382#M85466</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;read definition of networkdays function:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/networkdays.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/networkdays.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;after reading it you see that function has 3rd parameter: holidays - which needs to be pouplated as array of comma seperated values of holiday dates. To bring those dates from your table you can just use Concat function and pass them all to variable. If you dont know Concat function you can use the same help page to seek its description.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 01:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037382#M85466</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-02-14T01:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Networking dates excluding weekends and business dates</title>
      <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037429#M85471</link>
      <description>&lt;P&gt;Suppose to return 12 that skip 2 days holiday, but returning 14.&amp;nbsp; You know why ? Thanks.&lt;/P&gt;
&lt;P&gt;Holidays_table:&lt;BR /&gt;LOAD Concat(Holidays,',') as Holidays_value;&lt;BR /&gt;Load * inline [&lt;BR /&gt;Holidays&lt;BR /&gt;04/10/2020&lt;BR /&gt;04/13/2020&lt;BR /&gt;05/04/2020&lt;BR /&gt;05/25/2020&lt;BR /&gt;08/31/2020&lt;BR /&gt;12/25/2020&lt;BR /&gt;12/28/2020&lt;BR /&gt;01/01/2021&lt;BR /&gt;04/02/2021&lt;BR /&gt;04/05/2021&lt;BR /&gt;05/03/2021&lt;BR /&gt;05/31/2021&lt;BR /&gt;08/30/2021&lt;BR /&gt;12/27/2021&lt;BR /&gt;12/28/2021&lt;BR /&gt;01/03/2022&lt;BR /&gt;04/15/2022&lt;BR /&gt;04/18/2022&lt;BR /&gt;05/02/2022&lt;BR /&gt;06/02/2022&lt;BR /&gt;06/03/2022&lt;BR /&gt;08/29/2022&lt;BR /&gt;12/26/2022&lt;BR /&gt;12/27/2022&lt;BR /&gt;01/02/2023&lt;BR /&gt;02/14/2023&lt;BR /&gt;04/07/2023&lt;BR /&gt;04/10/2023&lt;BR /&gt;05/01/2023&lt;BR /&gt;05/29/2023&lt;BR /&gt;08/28/2023&lt;BR /&gt;12/25/2023&lt;BR /&gt;12/26/2023&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;let vHolidays = Peek('Holidays_value',0,'Holidays_table');&lt;/P&gt;
&lt;P&gt;let v2 = networkdays ('12/19/2013', '01/07/2014', vHolidays);&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 04:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037429#M85471</guid>
      <dc:creator>mimivan</dc:creator>
      <dc:date>2023-02-14T04:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Networking dates excluding weekends and business dates</title>
      <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037430#M85472</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I trace the vHolidays value&amp;nbsp; : 01/01/2021,01/02/2023,01/03/2022,02/14/2023,04/02/2021,04/05/2021,04/07/2023,04/10/2020,04/10/2023,04/13/2020,04/15/2022,04/18/2022,05/01/2023,05/02/2022,05/03/2021,05/04/2020,05/25/2020,05/29/2023,05/31/2021,06/02/2022,06/03/2022,08/28/2023,08/29/2022,08/30/2021,08/31/2020,12/25/2020,12/25/2023,12/26/2022,12/26/2023,12/27/2021,12/27/2022,12/28/2020,12/28/2021&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 04:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037430#M85472</guid>
      <dc:creator>mimivan</dc:creator>
      <dc:date>2023-02-14T04:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Networking dates excluding weekends and business dates</title>
      <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037455#M85475</link>
      <description>&lt;P&gt;the code above will not work as you are using 2013 and 2014 years and holidays you have for 2022-2023&lt;/P&gt;
&lt;P&gt;below is a working sample i quickly did changing some obvious formats to meet requirements listed in help document:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_0-1676354610520.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100400i28DE4CD301D5D1DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_0-1676354610520.png" alt="Lech_Miszkiewicz_0-1676354610520.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as mentioned in help page you must check format of your Date system variable as the same format must be used in networkdays function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_1-1676354670878.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100401i8597BAA754D3863C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_1-1676354670878.png" alt="Lech_Miszkiewicz_1-1676354670878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 06:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037455#M85475</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-02-14T06:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Networking dates excluding weekends and business dates</title>
      <link>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037943#M85518</link>
      <description>&lt;P&gt;worked well. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Networking-dates-excluding-weekends-and-business-dates/m-p/2037943#M85518</guid>
      <dc:creator>mimivan</dc:creator>
      <dc:date>2023-02-14T20:34:06Z</dc:date>
    </item>
  </channel>
</rss>

