<?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 Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326054#M836254</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 am new to qlikview and I am working on a logic of calculating the Turn Around Time between a date range [date/time] fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found code posted by Rob Wunderlich in the below thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/60227" target="_blank"&gt;Calculate hours between two Date/Time strings&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Could you kindly assist by clarifying the below code lines. I have done some research on QlikView Help and here's my understanding of the below logic so far.&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Line 1: The Interval() is used to return the results as time. &lt;SPAN style="color: #ff0000;"&gt;Please correct me if I am wrong&lt;/SPAN&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Line 2: The RangeMin() is to limit the time to 17:00 hours. &lt;SPAN style="color: #ff0000;"&gt;Please correct me if I am wrong&lt;/SPAN&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Line 3: &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;The RangeMax() is to limit the time to 8:00 hours. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; color: #ff0000;"&gt;Please correct me if I am wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;Line 4: The NetWorkDays() is to return the number of days. The results is returned as time. &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 13px; font-style: inherit; font-weight: inherit;"&gt;Please correct me if I am wrong, why are we &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;subtracting&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-style: inherit; font-weight: inherit;"&gt; a 1 or a day???&lt;/SPAN&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Interval(&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RangeMin(frac(Closedate), MakeTime(17))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt; - &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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeMax(frac(Logdate), MakeTime(8)))&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (NetWorkDays(Logdate, Closedate-1) * MakeTime(9)) // Only 9 hours per whole day&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;5&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&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>NetworkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326054#M836254</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 am new to qlikview and I am working on a logic of calculating the Turn Around Time between a date range [date/time] fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found code posted by Rob Wunderlich in the below thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/60227" target="_blank"&gt;Calculate hours between two Date/Time strings&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Could you kindly assist by clarifying the below code lines. I have done some research on QlikView Help and here's my understanding of the below logic so far.&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Line 1: The Interval() is used to return the results as time. &lt;SPAN style="color: #ff0000;"&gt;Please correct me if I am wrong&lt;/SPAN&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Line 2: The RangeMin() is to limit the time to 17:00 hours. &lt;SPAN style="color: #ff0000;"&gt;Please correct me if I am wrong&lt;/SPAN&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Line 3: &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;The RangeMax() is to limit the time to 8:00 hours. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; color: #ff0000;"&gt;Please correct me if I am wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;Line 4: The NetWorkDays() is to return the number of days. The results is returned as time. &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 13px; font-style: inherit; font-weight: inherit;"&gt;Please correct me if I am wrong, why are we &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;subtracting&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-style: inherit; font-weight: inherit;"&gt; a 1 or a day???&lt;/SPAN&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Interval(&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RangeMin(frac(Closedate), MakeTime(17))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt; - &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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeMax(frac(Logdate), MakeTime(8)))&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (NetWorkDays(Logdate, Closedate-1) * MakeTime(9)) // Only 9 hours per whole day&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;5&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&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326054#M836254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: NetworkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326055#M836255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16489"&gt;Business Working Hours Calculation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 09:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326055#M836255</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-24T09:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: NetworkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326056#M836256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sir &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;Did perhaps you pick anything wrong in my understanding of what the code is doing in my original post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 09:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326056#M836256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: NetworkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326057#M836257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is is an example of NetWorkingDays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 1: type that in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Holiday:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Date(Date#(Datum, 'DD.MM.YYYY')) as Datum&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;Datum,&lt;/P&gt;&lt;P&gt;01.05.2017&lt;/P&gt;&lt;P&gt;06.05.2017&lt;/P&gt;&lt;P&gt;07.05.2017&lt;/P&gt;&lt;P&gt;13.05.2017&lt;/P&gt;&lt;P&gt;14.05.2017&lt;/P&gt;&lt;P&gt;20.05.2017&lt;/P&gt;&lt;P&gt;21.05.2017&lt;/P&gt;&lt;P&gt;29.04.2017&lt;/P&gt;&lt;P&gt;30.04.2017&lt;/P&gt;&lt;P&gt;15.04.2017&lt;/P&gt;&lt;P&gt;13.04.2017&lt;/P&gt;&lt;P&gt;14.04.2017&lt;/P&gt;&lt;P&gt;17.04.2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ConcatTemp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Concat(Chr(39) &amp;amp; Datum &amp;amp; Chr(39), ',') as HolidaysDay&lt;/P&gt;&lt;P&gt;Resident Holiday;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMyHoliday = FieldValue('HolidaysDay',1);&lt;/P&gt;&lt;P&gt;Let vCurrentMonth = Month(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TurnoverTab:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Date(Date#(TurnoverDate, 'DD.MM.YYYY')) as TurnoverDate, Turnover&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;TurnoverDate,Turnover&lt;/P&gt;&lt;P&gt;03.05.2017, 230&lt;/P&gt;&lt;P&gt;04.05.2017, 25&lt;/P&gt;&lt;P&gt;16.05.2017, 66&lt;/P&gt;&lt;P&gt;10.05.2017, 120&lt;/P&gt;&lt;P&gt;19.05.2017, 32&lt;/P&gt;&lt;P&gt;12.04.2017, 100&lt;/P&gt;&lt;P&gt;05.04.2017, 12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(TurnoverDate) as&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName(TurnoverDate) as MonthYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Year(TurnoverDate) = Year(Today()) and Month(TurnoverDate) = Month(Today()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetWorkDays(MonthStart(Today()),(Today()),$(vMyHoliday)),NetWorkDays(MonthStart(TurnoverDate),MonthEnd(TurnoverDate),&lt;/P&gt;&lt;P&gt;$(vMyHoliday))) as WorkingDays&lt;/P&gt;&lt;P&gt;Resident TurnoverTab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table TurnoverTab, Holiday;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 2: on UserInterface: on Chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a straigh table:&lt;/P&gt;&lt;P&gt;Use as Dimension:MonthYear, WorkingDays,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as Expression use: Sum(Turnover) / WorkingDays as Avg Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that exaple helps you to understand this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 09:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NetworkDays-Function/m-p/1326057#M836257</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2017-05-24T09:56:12Z</dc:date>
    </item>
  </channel>
</rss>

