<?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: Entry/Exit time difference report? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413620#M153884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in script&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval((Time(Time,'hh:mm:ss')) -Previous(Time(Time,'hh:mm:ss')),'hh:mm:ss') as timediff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 12:17:59 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-04-30T12:17:59Z</dc:date>
    <item>
      <title>Entry/Exit time difference report?</title>
      <link>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413618#M153882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an extract (attached) which contains all the access times (in and outs) to the building. Because the time data is in the same column (as opposed to having two columns: one for In and one for out), I am unable to calculate the differences/ time spent in the building.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest an approach to solving this? I have tried splitting the data out into separate tables and then joining in a variety of ways. Failed at all accounts. There has to be a simpler way of achieving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="257"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="159"&gt;Time&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Action&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;03/12/2012 07:51:08&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;03/12/2012 08:09:17&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;03/12/2012 08:15:18&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;03/12/2012 14:10:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;03/12/2012 16:11:09&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;03/12/2012 18:32:16&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/12/2012 07:56:29&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/12/2012 11:03:20&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/12/2012 11:08:44&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/12/2012 14:31:17&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/12/2012 16:04:28&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;04/12/2012 18:09:42&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;05/12/2012 08:00:37&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;05/12/2012 12:31:26&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;05/12/2012 12:36:22&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;05/12/2012 16:26:12&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;06/12/2012 08:00:09&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;06/12/2012 11:27:08&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;06/12/2012 11:31:26&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;06/12/2012 14:28:31&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;06/12/2012 16:19:42&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;06/12/2012 19:01:22&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;07/12/2012 07:59:10&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;07/12/2012 12:42:33&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;10/12/2012 08:01:20&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;10/12/2012 12:56:51&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;10/12/2012 13:14:23&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;IN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 11:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413618#M153882</guid>
      <dc:creator />
      <dc:date>2013-04-30T11:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Entry/Exit time difference report?</title>
      <link>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413619#M153883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Time, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Action,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( Action = 'OUT', interval(Time - peek('Time',-1) )) as TimeSpent&lt;/P&gt;&lt;P&gt;FROM ...; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 12:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413619#M153883</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-30T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Entry/Exit time difference report?</title>
      <link>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413620#M153884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in script&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval((Time(Time,'hh:mm:ss')) -Previous(Time(Time,'hh:mm:ss')),'hh:mm:ss') as timediff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 12:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413620#M153884</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-04-30T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Entry/Exit time difference report?</title>
      <link>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413621#M153885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! that works perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 12:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Entry-Exit-time-difference-report/m-p/413621#M153885</guid>
      <dc:creator />
      <dc:date>2013-04-30T12:49:09Z</dc:date>
    </item>
  </channel>
</rss>

