<?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: Find Time Difference from two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857764#M530284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; load* Inline [&lt;/P&gt;&lt;P&gt;Key,Received_DateTime&lt;/P&gt;&lt;P&gt;20150309-00029814_1 ,10/3/2015 2:28&lt;/P&gt;&lt;P&gt;20150309-00029814_2 ,1/4/2015 16:19&lt;/P&gt;&lt;P&gt;20150312-00004425_1 ,12/3/2015 3:47&lt;/P&gt;&lt;P&gt;20150312-00004425_2 ,1/4/2015 14:20&lt;/P&gt;&lt;P&gt;20150316-00001394_1 ,17/03/2015 02:21&lt;/P&gt;&lt;P&gt;20150316-00001394_2 ,8/4/2015 2:51&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; load * inline&lt;/P&gt;&lt;P&gt; [&lt;/P&gt;&lt;P&gt;Key,Released_DateTime&lt;/P&gt;&lt;P&gt;20150309-00029814_1 ,1/4/2015 15:07&lt;/P&gt;&lt;P&gt;20150309-00029814_2 ,1/4/2015 17:28&lt;/P&gt;&lt;P&gt;20150312-00004425_1 ,1/4/2015 10:52&lt;/P&gt;&lt;P&gt;20150312-00004425_2 ,1/4/2015 14:50&lt;/P&gt;&lt;P&gt;20150316-00001394_1 ,7/4/2015 16:33&lt;/P&gt;&lt;P&gt;20150316-00001394_2 ,8/4/2015 7:21&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Key,Interval((SubField(Received_DateTime,' ',1) &amp;amp;''&amp;amp;Time(SubField(Released_DateTime,' ',2))) - (SubField(Released_DateTime,' ',1) &amp;amp;''&amp;amp;Time(SubField(Received_DateTime,' ',2))),'dd:hh:mm') as Timedifference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Satya Paleti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 06:35:32 GMT</pubDate>
    <dc:creator>SatyaPaleti</dc:creator>
    <dc:date>2015-07-01T06:35:32Z</dc:date>
    <item>
      <title>Find Time Difference from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857761#M530281</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;Table1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="314"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="157"&gt;Key&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="157"&gt;Received_DateTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="19" style="font-style: inherit;" width="157"&gt;20150309-00029814_1&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="157"&gt;10/3/2015 2:28&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="19" style="font-style: inherit;" width="157"&gt;20150309-00029814_2&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="157"&gt;1/4/2015 16:19&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="19" style="font-style: inherit;" width="157"&gt;20150312-00004425_1&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="157"&gt;12/3/2015 3:47&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="19" style="font-style: inherit;" width="157"&gt;20150312-00004425_2&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="157"&gt;1/4/2015 14:20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="19" style="font-style: inherit;" width="157"&gt;20150316-00001394_1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="157"&gt;17/03/2015 02:21&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="19" style="font-style: inherit;" width="157"&gt;20150316-00001394_2&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit;" width="157"&gt;8/4/2015 2:51&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Table2: &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="314"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" width="157"&gt;Key&lt;/TD&gt;&lt;TD class="xl65" style="font-style: inherit;" width="157"&gt;Released_DateTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="19" style="font-style: inherit;" width="157"&gt;20150309-00029814_1&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="157"&gt;1/4/2015 15:07&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="19" style="font-style: inherit;" width="157"&gt;20150309-00029814_2&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="157"&gt;1/4/2015 17:28&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="19" style="font-style: inherit;" width="157"&gt;20150312-00004425_1&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="157"&gt;1/4/2015 10:52&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="19" style="font-style: inherit;" width="157"&gt;20150312-00004425_2&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="157"&gt;1/4/2015 14:50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="19" style="font-style: inherit;" width="157"&gt;20150316-00001394_1&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="157"&gt;7/4/2015 16:33&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="19" style="font-style: inherit;" width="157"&gt;20150316-00001394_2&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="157"&gt;8/4/2015 7:21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to find the Interval between Received_DateTime and Released_DateTime based on KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 04:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857761#M530281</guid>
      <dc:creator />
      <dc:date>2015-07-01T04:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find Time Difference from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857762#M530282</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;In script use join to combine both table&lt;/P&gt;&lt;P&gt;then use Resident load and interval() to calculate time difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;Tabel1:&lt;/P&gt;&lt;P&gt;Load *,Key from Table 1;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;Load *,Key from Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load Key,interval(Received_dateTime-Release_datetime,'hh:mm') as TimeDifference&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 05:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857762#M530282</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-07-01T05:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find Time Difference from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857763#M530283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the tables as is. Then in the front end try like:&lt;/P&gt;&lt;P&gt;=Interval(Released_DateTime - Received_DateTime, 'dd:hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify the interval output format as per your need, like 'hh' for difference hours, 'mm' for minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 05:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857763#M530283</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-07-01T05:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find Time Difference from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857764#M530284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; load* Inline [&lt;/P&gt;&lt;P&gt;Key,Received_DateTime&lt;/P&gt;&lt;P&gt;20150309-00029814_1 ,10/3/2015 2:28&lt;/P&gt;&lt;P&gt;20150309-00029814_2 ,1/4/2015 16:19&lt;/P&gt;&lt;P&gt;20150312-00004425_1 ,12/3/2015 3:47&lt;/P&gt;&lt;P&gt;20150312-00004425_2 ,1/4/2015 14:20&lt;/P&gt;&lt;P&gt;20150316-00001394_1 ,17/03/2015 02:21&lt;/P&gt;&lt;P&gt;20150316-00001394_2 ,8/4/2015 2:51&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; load * inline&lt;/P&gt;&lt;P&gt; [&lt;/P&gt;&lt;P&gt;Key,Released_DateTime&lt;/P&gt;&lt;P&gt;20150309-00029814_1 ,1/4/2015 15:07&lt;/P&gt;&lt;P&gt;20150309-00029814_2 ,1/4/2015 17:28&lt;/P&gt;&lt;P&gt;20150312-00004425_1 ,1/4/2015 10:52&lt;/P&gt;&lt;P&gt;20150312-00004425_2 ,1/4/2015 14:50&lt;/P&gt;&lt;P&gt;20150316-00001394_1 ,7/4/2015 16:33&lt;/P&gt;&lt;P&gt;20150316-00001394_2 ,8/4/2015 7:21&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Key,Interval((SubField(Received_DateTime,' ',1) &amp;amp;''&amp;amp;Time(SubField(Released_DateTime,' ',2))) - (SubField(Released_DateTime,' ',1) &amp;amp;''&amp;amp;Time(SubField(Received_DateTime,' ',2))),'dd:hh:mm') as Timedifference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Satya Paleti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 06:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857764#M530284</guid>
      <dc:creator>SatyaPaleti</dc:creator>
      <dc:date>2015-07-01T06:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Find Time Difference from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857765#M530285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Join the two tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 06:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Time-Difference-from-two-tables/m-p/857765#M530285</guid>
      <dc:creator />
      <dc:date>2015-07-01T06:38:22Z</dc:date>
    </item>
  </channel>
</rss>

