<?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/1162082#M632722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Timestamp1 is to the 100th millisecond, if I could get the timestamp to the nearest second rather than the 100th of a second that might work.&amp;nbsp; I tried date(Timestamp1, 'mm/DD/yyyy') as newDate&amp;nbsp; but Qlikview seemed to &lt;EM&gt;remember&lt;/EM&gt; the "rest" of the date - I need to check this.&amp;nbsp; Whether the conversion is just "looks" or if the number is actually changed.&amp;nbsp; Will check on Monday.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Max Dreamer - is there a way of keeping the timestamp to the nearest minute?&amp;nbsp; In another situation I have a series of events that occur within a number of milliseconds of each other.&amp;nbsp; I want to group them together if they occur within the same minute.&amp;nbsp; I will start another discussion.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jul 2016 09:37:18 GMT</pubDate>
    <dc:creator>josephinetedesc</dc:creator>
    <dc:date>2016-07-16T09:37:18Z</dc:date>
    <item>
      <title>Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162077#M632715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - to give an example of what I mean:&lt;/P&gt;&lt;P&gt;datestamp 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2016 9:00 am&lt;/P&gt;&lt;P&gt;datestamp 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2016 9:30 am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use the function&lt;/P&gt;&lt;P&gt;Networkdays(datestamp1, datestamp2) - the answer is 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use sum(timestamp2 - timestamp1) -&amp;nbsp; the answer is 0.0 something.&lt;/P&gt;&lt;P&gt;I have been asked to show Networking days as 0 - if the two timestamps occur on the same days.&amp;nbsp; Simple formula:&lt;/P&gt;&lt;P&gt;Networkdays(datestamp1, datestamp2) -1&lt;/P&gt;&lt;P&gt;But - working on some scenarios of dates - there is a problem when timestamp2 occurs on a Saturday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Tuesday 7/06/2016&amp;nbsp; 2:00:00 PM&amp;nbsp; and&amp;nbsp; Saturday11/06/2016&amp;nbsp; 3:00:00 PM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 514px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="194"&gt;dateCT&lt;/TD&gt;&lt;TD width="169"&gt;dateQA&lt;/TD&gt;&lt;TD width="87"&gt;answer&lt;/TD&gt;&lt;TD&gt;Network days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17"&gt;Wednesday, 1 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;Wednesday, 1 June 2016&lt;/TD&gt;&lt;TD align="right"&gt;0.041666667&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17"&gt;Wednesday, 1 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;Thursday, 2 June 2016&lt;/TD&gt;&lt;TD align="right"&gt;1.041666667&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17"&gt;Tuesday, 7 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;Friday, 10 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;3.041666667&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17"&gt;Tuesday, 7 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;Saturday, 11 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4.041666667&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17"&gt;Wednesday, 1 June 2016&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;Wednesday, 1 June 2016&lt;/TD&gt;&lt;TD align="right"&gt;0.001388889&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NetworkDays -1) will give 3 days which is not correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this problem only occur when timestamp2 is a weekend date?&lt;/P&gt;&lt;P&gt;Will I need to have another formula to account for these occassions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 02:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162077#M632715</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-07-15T02:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162078#M632716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josephine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you simply use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dateQA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;dateCT&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;+1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you need NetworkDays here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 02:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162078#M632716</guid>
      <dc:creator />
      <dc:date>2016-07-15T02:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162079#M632717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramkumar&lt;/P&gt;&lt;P&gt;the problem is that work does not occur on weekends (so far at leat in Australia for some industries &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we need to take this into account.&lt;/P&gt;&lt;P&gt;jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 02:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162079#M632717</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-07-15T02:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162080#M632718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Date(Timestamp1) = Date(Timestamp2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NetworkDays(Timestamp1, Timestamp2) - 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; NetworkDays(Timestamp1, Timestamp2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 05:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162080#M632718</guid>
      <dc:creator>pavan045</dc:creator>
      <dc:date>2016-07-15T05:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162081#M632720</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;try with simple if else&lt;/P&gt;&lt;P&gt;like if(floor(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;datestamp1)&lt;/SPAN&gt;=floor(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;datestamp2)&lt;/SPAN&gt;,1,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Networkdays(datestamp1, datestamp2)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: in comparision convert your timestamp value to date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;datestamp 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2016 9:00 am convert to 1/1/2016&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;datestamp 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2016 9:30 am &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;convert to 1/1/2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 06:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162081#M632720</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-15T06:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162082#M632722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Timestamp1 is to the 100th millisecond, if I could get the timestamp to the nearest second rather than the 100th of a second that might work.&amp;nbsp; I tried date(Timestamp1, 'mm/DD/yyyy') as newDate&amp;nbsp; but Qlikview seemed to &lt;EM&gt;remember&lt;/EM&gt; the "rest" of the date - I need to check this.&amp;nbsp; Whether the conversion is just "looks" or if the number is actually changed.&amp;nbsp; Will check on Monday.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Max Dreamer - is there a way of keeping the timestamp to the nearest minute?&amp;nbsp; In another situation I have a series of events that occur within a number of milliseconds of each other.&amp;nbsp; I want to group them together if they occur within the same minute.&amp;nbsp; I will start another discussion.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 09:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162082#M632722</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-07-16T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162083#M632724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josephine, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please have a look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-17044"&gt;How to remove weekend and holidays from your calculation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 03:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162083#M632724</guid>
      <dc:creator />
      <dc:date>2016-07-18T03:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162084#M632725</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;in format attribute&lt;/P&gt;&lt;P&gt;mm denotes minutes&lt;/P&gt;&lt;P&gt;MM denotes Months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify your expression and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 05:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1162084#M632725</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-18T05:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays function</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1779160#M632727</link>
      <description>&lt;P&gt;I hit the same issue when using dates.&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;networkdays ('04/02/2021', '05/02/2021') = 2 days (when I wanted 1 business day)&lt;/P&gt;&lt;P&gt;networkdays ('04/02/2021', '06/02/2021') = 2 days&lt;/P&gt;&lt;P&gt;So instead I used :&lt;/P&gt;&lt;P&gt;networkdays ('04/02/2021', ('05/02/2021' - 1)) = 1 day&lt;/P&gt;&lt;P&gt;networkdays ('04/02/2021', ('06/02/2021' - 1)) = 2 day&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 02:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-function/m-p/1779160#M632727</guid>
      <dc:creator>Duber101</dc:creator>
      <dc:date>2021-02-02T02:34:26Z</dc:date>
    </item>
  </channel>
</rss>

