<?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: How to calculate Network Hours between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097299#M364427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have observed, there is a net work-days function, but no such function for hours. You will need to provide more information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How many hours are worked per day?&lt;/LI&gt;&lt;LI&gt;If less than 24, what are the start and end times of each day?&lt;/LI&gt;&lt;LI&gt;If the start or end time is ever outside the workday window, should the hours be counted?&lt;/LI&gt;&lt;LI&gt;EDIT - is the work week Monday - Friday?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In simple teams, I would use NetWorkDays() to caluclate the number of full days, multiplies by the number of hours per workday. Then calculate and add the number of hours on the first day and the last. You will be using RangeMax and RangeMin to do this. Also it is useful to know that Qlikview dates are (like Excel) numbers where the integer part represents the date and the fractional part the time of day, so each hour is an interval of value 1/24. Finally you will need an interval function to return the number of hours (this changes the way it is displayed), or multiply the value by 24 to convert the value and return the number of hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you get started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Mar 2016 10:57:44 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-03-06T10:57:44Z</dc:date>
    <item>
      <title>How to calculate Network Hours between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097298#M364426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have the below data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Input:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * Inline&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;InteractionID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatedDate&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; ResolvedDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2065789,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/20/201601:22:15 PM&amp;nbsp; ,&amp;nbsp; 03/23/201609:15:07 AM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2065790,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/15/2016 10:40:10 AM&amp;nbsp; ,&amp;nbsp; 03/15/2016 10:15:04 PM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2065791,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/18/2016 03:20:20 PM&amp;nbsp; ,&amp;nbsp; 03/22/2016 11:10:10 AM&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-size: 10pt; font-family: inherit;"&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-size: 10pt; font-family: inherit;"&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;i want to calculate the network hours between CreatedDate and ResolvedDate ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am familier with NetworkDays() of Qlikview and it is giving me the result according to days but i want it on hourly basis..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is this possible if yes then please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sarfaraz&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="line-height: 1.5em;"&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;Sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 10:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097298#M364426</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2016-03-06T10:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Network Hours between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097299#M364427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have observed, there is a net work-days function, but no such function for hours. You will need to provide more information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How many hours are worked per day?&lt;/LI&gt;&lt;LI&gt;If less than 24, what are the start and end times of each day?&lt;/LI&gt;&lt;LI&gt;If the start or end time is ever outside the workday window, should the hours be counted?&lt;/LI&gt;&lt;LI&gt;EDIT - is the work week Monday - Friday?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In simple teams, I would use NetWorkDays() to caluclate the number of full days, multiplies by the number of hours per workday. Then calculate and add the number of hours on the first day and the last. You will be using RangeMax and RangeMin to do this. Also it is useful to know that Qlikview dates are (like Excel) numbers where the integer part represents the date and the fractional part the time of day, so each hour is an interval of value 1/24. Finally you will need an interval function to return the number of hours (this changes the way it is displayed), or multiply the value by 24 to convert the value and return the number of hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you get started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 10:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097299#M364427</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-06T10:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Network Hours between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097300#M364428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/60227"&gt;Calculate hours between two Date/Time strings&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what you are looking for...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 11:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097300#M364428</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-03-06T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Network Hours between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097301#M364429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please keep any practical example here for my understanding .....so that would be more helpful for me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 11:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097301#M364429</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2016-03-06T11:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Network Hours between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097302#M364430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I don't have any current examples for you. I last did it for a vehicle finance client some year ago. But if you search the forum or follow the link provided by Manish, you might find practical examples. I can also provide more detailed help if you respond to my questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 11:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1097302#M364430</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-06T11:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Network Hours between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1538402#M439282</link>
      <description>&lt;P&gt;Having the same issue however I do also want to include Weekends into the calculation&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 12:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Network-Hours-between-two-dates/m-p/1538402#M439282</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2019-02-01T12:26:34Z</dc:date>
    </item>
  </channel>
</rss>

