<?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 statement syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/statement-syntax/m-p/496992#M185818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(isNull(%DatXX_Ölev_KO)),%Dat1 - %Dat2,%Dat1 - %Dat3) as DayAmount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i would like to do with this statement is add the function networkingdays for the two condtions, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie %Dat1 - %Dat2 and&lt;/P&gt;&lt;P&gt;%Dat1 - %Dat3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(networkingdays(isNull(%DatXX_Ölev_KO))),%Dat1 - %Dat2,%Dat1 - %Dat3) as DayAmount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this however without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Jan 2014 13:41:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-12T13:41:40Z</dc:date>
    <item>
      <title>statement syntax</title>
      <link>https://community.qlik.com/t5/QlikView/statement-syntax/m-p/496992#M185818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(isNull(%DatXX_Ölev_KO)),%Dat1 - %Dat2,%Dat1 - %Dat3) as DayAmount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i would like to do with this statement is add the function networkingdays for the two condtions, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie %Dat1 - %Dat2 and&lt;/P&gt;&lt;P&gt;%Dat1 - %Dat3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(networkingdays(isNull(%DatXX_Ölev_KO))),%Dat1 - %Dat2,%Dat1 - %Dat3) as DayAmount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this however without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jan 2014 13:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/statement-syntax/m-p/496992#M185818</guid>
      <dc:creator />
      <dc:date>2014-01-12T13:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: statement syntax</title>
      <link>https://community.qlik.com/t5/QlikView/statement-syntax/m-p/496993#M185819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, both expressions seem to have unbalanced number of opening and closing round brackets, please recheck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of networkdays() function is&lt;/P&gt;&lt;P&gt;&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 class="syntax"&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&gt;&lt;/P&gt;&lt;P&gt;So you need to state at least two arguments (start date, end date). I think your end date is %dat1 and your start date either %Dat2 or %Dat3 (maybe the other way round, I assume your difference calculation should end up in a positive number so it should be&lt;EM&gt; later date - earlier date.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;networkdays( if(isnull(%DatXX_Ölev_KO), %Dat2, %Dat3), %Dat1 ) as NetworkDays&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jan 2014 14:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/statement-syntax/m-p/496993#M185819</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-12T14:02:01Z</dc:date>
    </item>
  </channel>
</rss>

