<?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: How can i make this work?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422720#M157507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Networkdays accepts comma separated holidays&lt;/P&gt;&lt;P&gt;So there has to be à simple solution &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2013 08:14:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-11T08:14:49Z</dc:date>
    <item>
      <title>How can i make this work??</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422718#M157505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my example i have a inline table with from date -&amp;gt; end data&lt;/P&gt;&lt;P&gt;My problem is that i have different Holiday data for different records.&lt;/P&gt;&lt;P&gt;the holiday data is stored as string in the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want the networkdays function use this field (Holiday), but it is ignoring these values! See (30-04-2012)&lt;/P&gt;&lt;P&gt;How can i change the script in such a way that the Holiday fields is correct used in my (not mine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; ) function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help me!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 20:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422718#M157505</guid>
      <dc:creator />
      <dc:date>2013-02-10T20:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make this work??</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422719#M157506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using Dollar Sign Expansion (DSE) on the field &lt;STRONG&gt;Holiday &lt;/STRONG&gt;from the preceding Load.&amp;nbsp; However, there is nothing really to expand.&amp;nbsp; Further, I don't think you can call NetWorkDays() and as the holiday arguemnt(s) pass a single string that is comma delimited.&amp;nbsp; The NetWorkDays() function can accept a variable number of arguments for the holidays, but you cannot pass them all as a delimited list in a single argument list this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/SPAN&gt;:&amp;nbsp; NetWorkDays() apparently &lt;STRONG&gt;does&lt;/STRONG&gt; accept a comma delimited list.&amp;nbsp; See additional responses below for an easier solution (thanks to &lt;STRONG&gt;swuehl&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You rely on NetWorkDays() in a few places in your Interval() expression, so what you could do is use another preceding load to calculate that (just so you only have to do it once), and use an approach whereby you determine the number of holidays you have for the record, then call the NetWorkDays with multiple arguments as needed.&amp;nbsp; You could use substringcount() to look for commas in the Holiday field to determine how many you have.&amp;nbsp; Then use subfield() to parse them out.&amp;nbsp; Wrap that in an inline IF function (a rather long one, depending on the maximum number of holidays you need to support).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somethings like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13605888367405136" jivemacro_uid="_13605888367405136"&gt;&lt;P&gt;if(len(trim([Holiday]))&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pick(substringcount([Holiday],',')+1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Networkdays(Begin+1,End-1,[Holiday]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Networkdays(Begin+1,End-1,subfield([Holiday],',',1),subfield([Holiday],',',2)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Networkdays(Begin+1,End-1,subfield([Holiday],',',1),subfield([Holiday],',',2),subfield([Holiday],',',3)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Networkdays(Begin+1,End-1,subfield([Holiday],',',1),subfield([Holiday],',',2),subfield([Holiday],',',3),subfield([Holiday],',',4))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,Networkdays(Begin+1,End-1)) As NWD_Value,&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That expresion covers up to 4 holidays, but could be expanded as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Donald Hutchins (clarification, see "EDIT")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 22:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422719#M157506</guid>
      <dc:creator />
      <dc:date>2013-02-10T22:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make this work??</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422720#M157507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Networkdays accepts comma separated holidays&lt;/P&gt;&lt;P&gt;So there has to be à simple solution &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 08:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422720#M157507</guid>
      <dc:creator />
      <dc:date>2013-02-11T08:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make this work??</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422721#M157508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jochem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as Donald pointed out, your dollar sign expansion returns nothing. I think you'll need to create a loop over all IDs, creating a holiday variable per iteration and pass it to the networkdays function (if you want to do this in the script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 09:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-make-this-work/m-p/422721#M157508</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-11T09:10:27Z</dc:date>
    </item>
  </channel>
</rss>

