<?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 Passing holiday list argument to Networkdays from a field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Passing-holiday-list-argument-to-Networkdays-from-a-field/m-p/1426034#M34027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qvd file as a source of the holidays in the format of a comma separated holiday list per each country. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add this field (with holiday list) as a new field in my data containing the dates I want to perform calculation on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate a field using Networkdays() function in the script and want to pass the holiday list&amp;nbsp; as the function argument from the field added (it is already part of the data when calculation is done).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this works if I read the holiday list field first into a variable and pass this variable using $ sign expansion&amp;nbsp; in the script, but it does not work&amp;nbsp; if I pass the list directly from the field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct way of passing a string list of holidays?&amp;nbsp; I want to avoid cycling through the data in my load via defining variable per each country ,&amp;nbsp; as the&amp;nbsp; performance gets dramatically down on large data sets this way.&lt;/P&gt;&lt;P&gt;Example of the holiday list and fields:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179139_example.JPG" style="height: 57px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This formula in script &lt;STRONG&gt;would not&lt;/STRONG&gt; consider the holiday list:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NetWorkDays( Depot In,Depot Out,HL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this one &lt;STRONG&gt;would&lt;/STRONG&gt; work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NetWorkDays( Depot In,Depot Out,$(vHolTest))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;vHolTest was previously defined&amp;nbsp; from the same table using Let /Peek:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 12:50:50 GMT</pubDate>
    <dc:creator>mszetyinszki</dc:creator>
    <dc:date>2017-10-10T12:50:50Z</dc:date>
    <item>
      <title>Passing holiday list argument to Networkdays from a field</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-holiday-list-argument-to-Networkdays-from-a-field/m-p/1426034#M34027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qvd file as a source of the holidays in the format of a comma separated holiday list per each country. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add this field (with holiday list) as a new field in my data containing the dates I want to perform calculation on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate a field using Networkdays() function in the script and want to pass the holiday list&amp;nbsp; as the function argument from the field added (it is already part of the data when calculation is done).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this works if I read the holiday list field first into a variable and pass this variable using $ sign expansion&amp;nbsp; in the script, but it does not work&amp;nbsp; if I pass the list directly from the field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct way of passing a string list of holidays?&amp;nbsp; I want to avoid cycling through the data in my load via defining variable per each country ,&amp;nbsp; as the&amp;nbsp; performance gets dramatically down on large data sets this way.&lt;/P&gt;&lt;P&gt;Example of the holiday list and fields:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179139_example.JPG" style="height: 57px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This formula in script &lt;STRONG&gt;would not&lt;/STRONG&gt; consider the holiday list:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NetWorkDays( Depot In,Depot Out,HL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this one &lt;STRONG&gt;would&lt;/STRONG&gt; work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NetWorkDays( Depot In,Depot Out,$(vHolTest))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;vHolTest was previously defined&amp;nbsp; from the same table using Let /Peek:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-holiday-list-argument-to-Networkdays-from-a-field/m-p/1426034#M34027</guid>
      <dc:creator>mszetyinszki</dc:creator>
      <dc:date>2017-10-10T12:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Passing holiday list argument to Networkdays from a field</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-holiday-list-argument-to-Networkdays-from-a-field/m-p/1796456#M62475</link>
      <description>&lt;P&gt;solution here :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Question-Is-it-possible-to-use-a-field-as-a-parameter-for/m-p/46478" target="_self"&gt;solution&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 15:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-holiday-list-argument-to-Networkdays-from-a-field/m-p/1796456#M62475</guid>
      <dc:creator>mszetyinszki</dc:creator>
      <dc:date>2021-04-01T15:34:42Z</dc:date>
    </item>
  </channel>
</rss>

