<?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: NetWorkDays function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472833#M176571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aviad_we,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark this post as answered,if your query is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Snehal Nabar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 06:38:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-04T06:38:17Z</dc:date>
    <item>
      <title>NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472830#M176568</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;I'm facing an issue with NetWorkDays function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm using this expression:&amp;nbsp; =NetWorkDays('11/12/2012','04/03/2013')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is 60, which is correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I'm using: =NetWorkDays('04/03/2013','11/12/2012')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fuction returns 0, and I need it to return (-60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get (-60) instead of 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aviad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 16:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472830#M176568</guid>
      <dc:creator />
      <dc:date>2012-12-31T16:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472831#M176569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetWorkDays(floor(('04/03/2013','11/12/2012'))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; ='-' &amp;amp; NetWorkDays(floor(('04/03/2013','11/12/2012')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 17:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472831#M176569</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-12-31T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472832#M176570</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;Networkdays function would not return negative result,but 0.&lt;/P&gt;&lt;P&gt;In such a case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the below example,where I have a startdate and enddate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;EmplNo,Amount,StartDate,EndDate&lt;BR /&gt;001,129.000,11/12/2012,12/15/2012&lt;BR /&gt;002,130.000,12/12/2012,12/15/2012&lt;BR /&gt;003,154.000,01/01/2013,05/01/2013&lt;BR /&gt;004,186.000,12/01/2013,12/01/2013&lt;BR /&gt;005,169.000,01/25/2013,01/27/2013&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="140" style="width: 354px; height: 114px;" width="352"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;EmplNo&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;Amt&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="204"&gt;StartDate - EndDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="136"&gt;EndDate-StartDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: medium none;"&gt;001&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;129&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: medium none; border-top: medium none;"&gt;25&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: medium none; border-top: medium none;"&gt;-25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: medium none;"&gt;002&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;130&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: medium none; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: medium none; border-top: medium none;"&gt;-3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: medium none;"&gt;003&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;154&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: medium none; border-top: medium none;"&gt;87&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: medium none; border-top: medium none;"&gt;-87&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: medium none;"&gt;004&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;186&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: medium none; border-top: medium none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: medium none; border-top: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: medium none;"&gt;005&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;169&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: medium none; border-top: medium none;"&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For achieving (StartDate - EndDate) column result use the expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=NetWorkDays&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For achieving (EndDate-StartDate) column result use the expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=NetWorkDays&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, you get the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Snehal Nabar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 06:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472832#M176570</guid>
      <dc:creator />
      <dc:date>2013-01-04T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: NetWorkDays function</title>
      <link>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472833#M176571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aviad_we,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark this post as answered,if your query is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Snehal Nabar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 06:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetWorkDays-function/m-p/472833#M176571</guid>
      <dc:creator />
      <dc:date>2013-01-04T06:38:17Z</dc:date>
    </item>
  </channel>
</rss>

