<?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: Time Interval in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851564#M530379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the output you are expecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91327_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes then you can use the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Interval(Released_DateTime - Received_DateTime, 'D hh:mm:ss') as Difference;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Timestamp#(Received_DateTime, 'DD/MM/YYYY hh:mm:ss') as Received_DateTime,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Timestamp#(Released_DateTime, 'DD/MM/YYYY hh:mm:ss') as Released_DateTime;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Key, Received_DateTime, Released_DateTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150309-00029814_1, 10/03/2015 02:28:16, 01/04/2015 15:07:25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150309-00029814_2, 01/04/2015 16:19:02, 01/04/2015 17:28:30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150312-00004425_1, 12/03/2015 03:47:29, 01/04/2015 10:52:52&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150312-00004425_2, 01/04/2015 14:20:03, 01/04/2015 14:50:40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150316-00001394_1, 17/03/2015 02:21:09, 07/04/2015 16:33:07&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150316-00001394_2, 08/04/2015 02:51:44, 08/04/2015 7:21:39&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 12:16:46 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-30T12:16:46Z</dc:date>
    <item>
      <title>Time Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851559#M530369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I Have 2 Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="234"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="117"&gt;TRN_Received&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="117"&gt;Received_DateTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150309-00029814&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 16:19:02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150309-00029814&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;10/03/2015 02:28:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150312-00004425&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 14:20:03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150312-00004425&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;12/03/2015 03:47:29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150316-00001394&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;08/04/2015 02:51:44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150316-00001394&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;17/03/2015 02:21:09&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Released:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="234"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="117"&gt;TRN_Released&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="117"&gt;Released_DateTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150309-00029814&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 15:07:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150309-00029814&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 15:28:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150312-00004425&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 10:52:52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150312-00004425&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 13:50:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150316-00001394&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07/04/2015 16:33:07&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150316-00001394&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;08/04/2015 7:21:39&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i find the difference between Released_DateTime and Received_DateTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851559#M530369</guid>
      <dc:creator />
      <dc:date>2015-06-30T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851560#M530373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Interval(Sum(ProProductiveTime),'hh:mm:ss') -Interval(Sum(ProNonProductiveTime),'hh:mm:ss'),'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use ur fields on the above expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851560#M530373</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-30T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851561#M530376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple TRN_Released in both the tables. Which ones do you need to calculate the difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851561#M530376</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-30T12:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851562#M530377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to find the interval , the compare&amp;nbsp; based&amp;nbsp; on the unique key other wise this yield in wrong result &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851562#M530377</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-30T12:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851563#M530378</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;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="363"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="129"&gt;Key&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="117"&gt;Received_DateTime&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="117"&gt;Released_DateTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150309-00029814_1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;10/03/2015 02:28:16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 15:07:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150309-00029814_2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 16:19:02&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 17:28:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150312-00004425_1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;12/03/2015 03:47:29&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 10:52:52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150312-00004425_2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 14:20:03&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/04/2015 14:50:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150316-00001394_1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;17/03/2015 02:21:09&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07/04/2015 16:33:07&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20150316-00001394_2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;08/04/2015 02:51:44&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;08/04/2015 7:21:39&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above table , Received_DateTime is from table1 and the other from table2&lt;/P&gt;&lt;P&gt;Key is the Concatenated Column .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851563#M530378</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Time Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851564#M530379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the output you are expecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91327_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes then you can use the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Interval(Released_DateTime - Received_DateTime, 'D hh:mm:ss') as Difference;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Timestamp#(Received_DateTime, 'DD/MM/YYYY hh:mm:ss') as Received_DateTime,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Timestamp#(Released_DateTime, 'DD/MM/YYYY hh:mm:ss') as Released_DateTime;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Key, Received_DateTime, Released_DateTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150309-00029814_1, 10/03/2015 02:28:16, 01/04/2015 15:07:25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150309-00029814_2, 01/04/2015 16:19:02, 01/04/2015 17:28:30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150312-00004425_1, 12/03/2015 03:47:29, 01/04/2015 10:52:52&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150312-00004425_2, 01/04/2015 14:20:03, 01/04/2015 14:50:40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150316-00001394_1, 17/03/2015 02:21:09, 07/04/2015 16:33:07&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;20150316-00001394_2, 08/04/2015 02:51:44, 08/04/2015 7:21:39&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Interval/m-p/851564#M530379</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-30T12:16:46Z</dc:date>
    </item>
  </channel>
</rss>

