<?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: Calculation of time difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835224#M993491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at attached sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 21:04:32 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-01T21:04:32Z</dc:date>
    <item>
      <title>Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835216#M993480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys, please help me i got stuck in one problem:- &lt;/P&gt;&lt;P&gt;I want to calculate the Total time difference from Assigned status to last In Progress status.&lt;/P&gt;&lt;P&gt;But there is a condition if there is a any Pending status in the column and then after just there is a first in progress status, time difference should be exclude. Eventually, what would be the final time difference. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hers is a scenario:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID NO&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Date&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Status&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/20/2015&amp;nbsp; 6:43:25 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Assigned&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/20/2015&amp;nbsp; 6:46:56 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In Progress&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/20/2015&amp;nbsp; 6:52:13 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Pending&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/23/2015&amp;nbsp; 2:42:26 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In progress&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/23/2015&amp;nbsp; 2:42:29 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In progress&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/24/2015&amp;nbsp; 2:15:23 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Pending&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/27/2015&amp;nbsp; 9:15:23 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Pending&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="121"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ID001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="174"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3/28/2015&amp;nbsp; 9:15:23 AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="108"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In Progress&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835216#M993480</guid>
      <dc:creator>balrammahato204</dc:creator>
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835217#M993482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I fully understood your condition. If there is a Pending Status per ID before a In Progress Status, you want the interval not being calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;ID NO,Date,Status&lt;/P&gt;&lt;P&gt;ID001,3/20/2015 6:43:25 AM,Assigned&lt;/P&gt;&lt;P&gt;ID001,3/20/2015 6:46:56 AM,In Progress&lt;/P&gt;&lt;P&gt;ID001,3/20/2015 6:52:13 AM,Pending&lt;/P&gt;&lt;P&gt;ID001,3/23/2015 2:42:26 AM,In Progress&lt;/P&gt;&lt;P&gt;ID001,3/23/2015 2:42:29 AM,In Progress&lt;/P&gt;&lt;P&gt;ID001,3/24/2015 2:15:23 AM,Pending&lt;/P&gt;&lt;P&gt;ID001,3/27/2015 9:15:23 AM,Pending&lt;/P&gt;&lt;P&gt;ID001,3/28/2015 9:15:23 AM,In Progress&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID002,3/20/2015 6:43:25 AM,Assigned&lt;/P&gt;&lt;P&gt;ID002,3/20/2015 6:52:13 AM,Pending&lt;/P&gt;&lt;P&gt;ID002,3/23/2015 2:42:26 AM,In Progress&lt;/P&gt;&lt;P&gt;ID002,3/23/2015 2:42:29 AM,In Progress&lt;/P&gt;&lt;P&gt;ID002,3/24/2015 2:15:23 AM,Pending&lt;/P&gt;&lt;P&gt;ID002,3/27/2015 9:15:23 AM,Pending&lt;/P&gt;&lt;P&gt;ID002,3/28/2015 9:15:23 AM,In Progress&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID001 will be calculated, ID002, not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check this condition within a script calculation, grouping your data per ID NO and aggregating the Date values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERVALS:&lt;/P&gt;&lt;P&gt;LOAD *, if(IsNull(Interval),'Omitted') as Flag;&lt;/P&gt;&lt;P&gt;LOAD [ID NO],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Interval(if(Min(if(Status='Pending', Date)) &amp;gt; Min(if(Status = 'In Progress',Date)), Max(if(Status='In Progress', Date)) - Min(if(Status = 'Assigned',Date)) )) as Interval&lt;/P&gt;&lt;P&gt;RESIDENT INPUT&lt;/P&gt;&lt;P&gt;GROUP BY [ID NO];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: And please try to avoid multiple postings with the same request. It's hard to follow what's been discussed in the other threads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 08:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835217#M993482</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-27T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835218#M993484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks swuehl for your solution.&lt;/P&gt;&lt;P&gt;But in this calculation i also want to include some more condition-&lt;/P&gt;&lt;P&gt;.Exclude sat sun time and also exclude the holiday&lt;/P&gt;&lt;P&gt;.work hour calculation in between 08:00 AM to 6:00 PM.&lt;/P&gt;&lt;P&gt;How can i put your given logic into networkdays calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 10:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835218#M993484</guid>
      <dc:creator>balrammahato204</dc:creator>
      <dc:date>2015-06-27T10:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835219#M993486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like I described here:&lt;/P&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;Sample attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 10:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835219#M993486</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-27T10:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835220#M993487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your solution pending time is not excluding from the workingintervel. so please could you look it once. for the calculation i have just taken the simple values in ID001 and trace your script. Then i found&lt;/P&gt;&lt;P&gt;TotalIntervel = 07:00:00&lt;/P&gt;&lt;P&gt;workingintervel=7:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ID NO,Date,Status&lt;BR /&gt;ID001,3/20/2015 8:00:00 AM,Assigned&lt;BR /&gt;ID001,3/20/2015 9:00:00 AM,In Progress&lt;BR /&gt;ID001,3/20/2015 10:00:00 AM,Pending&lt;BR /&gt;ID001,3/20/2015 11:00:00 AM,In Progress&lt;BR /&gt;ID001,3/20/2015 12:00:00 PM,In Progress&lt;BR /&gt;ID001,3/20/2015 01:00:00 PM,Pending&lt;BR /&gt;ID001,3/20/2015 02:00:00 PM,Pending&lt;BR /&gt;ID001,3/20/2015 03:00:00 PM,In Progress&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID002,3/20/2015 6:43:25 AM,Assigned&lt;BR /&gt;ID002,3/20/2015 6:52:13 AM,Pending&lt;BR /&gt;ID002,3/23/2015 2:42:26 AM,In Progress&lt;BR /&gt;ID002,3/23/2015 2:42:29 AM,In Progress&lt;BR /&gt;ID002,3/24/2015 2:15:23 AM,Pending&lt;BR /&gt;ID002,3/27/2015 9:15:23 AM,Pending&lt;BR /&gt;ID002,3/28/2015 9:15:23 AM,In Progress&lt;BR /&gt;] &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Balram&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835220#M993487</guid>
      <dc:creator>balrammahato204</dc:creator>
      <dc:date>2015-07-01T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835221#M993488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks ok to me, ID001 all happens within the same date, same working hour interval 8AM to 6 PM.&lt;/P&gt;&lt;P&gt;So no issue if TotalInterval equals WorkingInterval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835221#M993488</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-01T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835222#M993489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;actuaaly i want like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3/20/2015 10:00:00 AM,Pending&lt;/P&gt;&lt;P&gt;3/20/2015 11:00:00 AM,In Progress&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID001,3/20/2015 01:00:00 PM,Pending&lt;/P&gt;&lt;P&gt;ID001,3/20/2015 02:00:00 PM,Pending&lt;/P&gt;&lt;P&gt;ID001,3/20/2015 03:00:00 PM,In Progress&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this situation will come then i want to exclude the time it means from the first condition 1 hour and second condition 2 hour. Total hour is 3 hr. I want also exclude these 3 hour from the WorkingInterval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835222#M993489</guid>
      <dc:creator>balrammahato204</dc:creator>
      <dc:date>2015-07-01T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835223#M993490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by using Date(maxdatefield)-Date(mindatefield)--&amp;gt;it gives dates differences&lt;/P&gt;&lt;P&gt;interval(hightime)-interval(lowtime)--&amp;gt;it gives time differences with format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 16:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835223#M993490</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-07-01T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835224#M993491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at attached sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835224#M993491</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-01T21:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835225#M993492</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;Swuehl,&lt;/P&gt;&lt;P&gt;now i am getting the perfect output. Now i have required one more help if in this calculation i am adding one more column as a "Priority" and when priority will change previous calculation will be zero and new calculation will start from the last priority change timestamp.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ID NO,Date,Status, Priority&lt;BR /&gt;ID001,3/20/2015 8:00:00 AM,Assigned,P1&lt;BR /&gt;ID001,3/20/2015 9:00:00 AM,In Progress,P1&lt;BR /&gt;ID001,3/20/2015 10:00:00 AM,Pending,P1,&lt;BR /&gt;ID001,3/20/2015 11:00:00 AM,In Progress,P2&lt;BR /&gt;ID001,3/20/2015 12:00:00 PM,In Progress,P2&lt;BR /&gt;ID001,3/20/2015 01:00:00 PM,Pending,P2&lt;BR /&gt;ID001,3/20/2015 02:00:00 PM,Pending,P2&lt;BR /&gt;ID001,3/20/2015 03:00:00 PM,In Progress,P3&lt;BR /&gt;ID001,3/20/2015 04:00:00 PM,In Progress,P3&lt;BR /&gt;ID001,3/20/2015 05:00:00 PM,In Pending,P3&lt;BR /&gt;ID001,3/20/2015 06:00:00 PM,In Progress,P3&lt;BR /&gt;&lt;BR /&gt;ID002,3/20/2015 6:43:25 AM,Assigned&lt;BR /&gt;ID002,3/20/2015 6:52:13 AM,Pending&lt;BR /&gt;ID002,3/23/2015 2:42:26 AM,In Progress&lt;BR /&gt;ID002,3/23/2015 2:42:29 AM,In Progress&lt;BR /&gt;ID002,3/24/2015 2:15:23 AM,Pending&lt;BR /&gt;ID002,3/27/2015 9:15:23 AM,Pending&lt;BR /&gt;ID002,3/28/2015 9:15:23 AM,In Progress&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In this example calculation will start from starting time of P3 and End time of P3 and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;It means my total ''workinginterval&amp;nbsp; &lt;/STRONG&gt;2Hour'' for ID001.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Balram&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 08:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835225#M993492</guid>
      <dc:creator>balrammahato204</dc:creator>
      <dc:date>2015-07-03T08:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835226#M993493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Swuehl,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;At first i want to say thank you very much for your solution. My last query for this calculation. I have already post in the previous reply.So could you please check once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Balram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 05:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-time-difference/m-p/835226#M993493</guid>
      <dc:creator>balrammahato204</dc:creator>
      <dc:date>2015-07-07T05:01:00Z</dc:date>
    </item>
  </channel>
</rss>

