<?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 networkdays - variable replacement not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253808#M96170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like many problems this was solved by correctly spelling the variable in question. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2011 14:36:35 GMT</pubDate>
    <dc:creator>jarno_loubser</dc:creator>
    <dc:date>2011-09-12T14:36:35Z</dc:date>
    <item>
      <title>networkdays - variable replacement not working</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253805#M96167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to replace the holiday part of the networkdays function with values in a variable as part of the load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variable's value is: '2002-12-31','2008-01-01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works: &lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;networkdays (peek(INCIDENT_DATE),INCIDENT_DATE, '2002-12-31','2008-01-01')&lt;/P&gt;&lt;P&gt;resident ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following ignores my holidays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;networkdays (peek(INCIDENT_DATE),INCIDENT_DATE, $(HoliDays))&lt;/P&gt;&lt;P&gt;resident ....,;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 13:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253805#M96167</guid>
      <dc:creator>jarno_loubser</dc:creator>
      <dc:date>2011-09-12T13:19:04Z</dc:date>
    </item>
    <item>
      <title>networkdays - variable replacement not working</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253806#M96168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; i believe we can not assign multiple values into single variable,it need to declare seperately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each holiday one variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 13:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253806#M96168</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-12T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: networkdays - variable replacement not working</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253807#M96169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try instead&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"&gt;&lt;P&gt;NetWorkDays(Peek('INCIDENT_DATE'), INCIDENT_DATE, '$(HoliDays)')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that both the field within Peek() and the variable HoliDays are single quoted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 14:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253807#M96169</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-12T14:26:36Z</dc:date>
    </item>
    <item>
      <title>networkdays - variable replacement not working</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253808#M96170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like many problems this was solved by correctly spelling the variable in question. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 14:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-variable-replacement-not-working/m-p/253808#M96170</guid>
      <dc:creator>jarno_loubser</dc:creator>
      <dc:date>2011-09-12T14:36:35Z</dc:date>
    </item>
  </channel>
</rss>

