<?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 Timestamp difference in working hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809650#M1024284</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 have two timestamp fields as below. I need to calculate the difference of these two in working hours i.e. between Monday to Friday and 9am to 5pm. Also excluding public holidays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="114" style="width: 525px; border-collapse: collapse; height: 114px;" width="525"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="background-color: transparent; width: 83pt; height: 15pt; border: windowtext 0.5pt solid;" width="111"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Entered&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 83pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="111"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Analysed&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 74pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="99"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Working Hours&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl66" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;13/03/2015 10:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;16/03/2015 11:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;9&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl66" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;16/03/2015 10:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;16/03/2015 12:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 12:00:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-16T12:00:22Z</dc:date>
    <item>
      <title>Timestamp difference in working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809650#M1024284</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 have two timestamp fields as below. I need to calculate the difference of these two in working hours i.e. between Monday to Friday and 9am to 5pm. Also excluding public holidays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="114" style="width: 525px; border-collapse: collapse; height: 114px;" width="525"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="background-color: transparent; width: 83pt; height: 15pt; border: windowtext 0.5pt solid;" width="111"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Entered&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 83pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="111"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Analysed&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 74pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="99"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Working Hours&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl66" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;13/03/2015 10:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;16/03/2015 11:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;9&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl66" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;16/03/2015 10:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Tahoma; color: #000000;"&gt;16/03/2015 12:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809650#M1024284</guid>
      <dc:creator />
      <dc:date>2015-03-16T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp difference in working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809651#M1024285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/146426"&gt;Work minutes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809651#M1024285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T12:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp difference in working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809652#M1024286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;=Interval(Interval(Sum(&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 16px;"&gt;Analysed&lt;/SPAN&gt;),'hh:mm:ss') - Interval(Sum(&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 16px;"&gt;Entered&lt;/SPAN&gt;),'hh:mm:ss'),'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for excluding holidays, u have create on excel with all ur days and maintain the flag with 0(WORKING DAY) OR 1(HOLIDAY) AND IN SCRIPT LEVEL U HAVE SUBTRACT ALL UR HOLIDAYS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809652#M1024286</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-03-16T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp difference in working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809653#M1024287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just an idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hour in Entered day (if not holiday)&lt;/P&gt;&lt;P&gt;+ (networkdays between entered+1 and Analysed-1) * 8&lt;/P&gt;&lt;P&gt;+ &lt;SPAN style="font-size: 13.3333330154419px;"&gt;hour in Analysed day (if not holiday)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809653#M1024287</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-16T12:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp difference in working hours</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809654#M1024288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all but how should I write script &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-difference-in-working-hours/m-p/809654#M1024288</guid>
      <dc:creator />
      <dc:date>2015-03-16T12:29:47Z</dc:date>
    </item>
  </channel>
</rss>

