<?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 Calculating the time duration between records excluding non working hours &amp; days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-the-time-duration-between-records-excluding-non/m-p/702896#M253606</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;The scenario I have is workflow where applications pass through different stages, Each stage generates a new record in the dataset for that application. I want to calculate the time taken to progress between each stage. This I can calculate by subtracting the timestamp of the current record from the previous record, however my challenge is that I need to be able to factor out weekends, and non working hours and public holidays. During some parts of the year, the working days are only 6 hours compared to the usual 8 hours, so I need to be able to set the number of working hours on any given day in the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets Assume that the working week is 6 days Sunday to Thursday and the working hours are 8AM - 5PM. An application created at 4PM on Thursday and progressing to the next step on Sunday at 10AM should calculate a duration of 3 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this achievable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is some data and an app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2014 08:47:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-18T08:47:05Z</dc:date>
    <item>
      <title>Calculating the time duration between records excluding non working hours &amp; days</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-time-duration-between-records-excluding-non/m-p/702896#M253606</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;The scenario I have is workflow where applications pass through different stages, Each stage generates a new record in the dataset for that application. I want to calculate the time taken to progress between each stage. This I can calculate by subtracting the timestamp of the current record from the previous record, however my challenge is that I need to be able to factor out weekends, and non working hours and public holidays. During some parts of the year, the working days are only 6 hours compared to the usual 8 hours, so I need to be able to set the number of working hours on any given day in the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets Assume that the working week is 6 days Sunday to Thursday and the working hours are 8AM - 5PM. An application created at 4PM on Thursday and progressing to the next step on Sunday at 10AM should calculate a duration of 3 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this achievable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is some data and an app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 08:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-time-duration-between-records-excluding-non/m-p/702896#M253606</guid>
      <dc:creator />
      <dc:date>2014-07-18T08:47:05Z</dc:date>
    </item>
  </channel>
</rss>

