<?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 in minutes between end time and begin time of consecutive IDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311402#M617490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I already have the times for each log. Want to see the gap in minutes between each log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 17:46:29 GMT</pubDate>
    <dc:creator>andrewmo</dc:creator>
    <dc:date>2017-05-15T17:46:29Z</dc:date>
    <item>
      <title>Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311394#M617482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone recommend a way to calculate the time difference between the end time of one event and the beginning time of the next event?&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;LOG 1234&lt;/P&gt;&lt;P&gt;Start 7:20&lt;/P&gt;&lt;P&gt;End 7:40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOG 5678&lt;/P&gt;&lt;P&gt;Start 7:45&lt;/P&gt;&lt;P&gt;End 8:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gap between LOG 1234 end and LOG 5678 start is 5 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 13:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311394#M617482</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-09T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311395#M617483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the peek() function in your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 14:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311395#M617483</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-09T14:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311396#M617484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide more information how data looks like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 14:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311396#M617484</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-09T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311397#M617485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of how the data looks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIMES:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;LOG, In, Out&lt;/P&gt;&lt;P&gt;1234, 5/1/2017 07:20, 5/1/2017 07:40&lt;/P&gt;&lt;P&gt;4567, 5/1/2017 07:50, 5/1/2017 08:20&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect to see a 10 minute difference between the Out time of LOG 1234 and the In time of LOG 4567&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311397#M617485</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-15T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311398#M617486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought this would work but I was unable to get the results I expected; I assume it is because I do not fully understand the peek function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIMES:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;LOG, In, Out&lt;/P&gt;&lt;P&gt;1234, 5/1/2017 07:20, 5/1/2017 07:40&lt;/P&gt;&lt;P&gt;4567, 5/1/2017 07:50, 5/1/2017 08:20&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would the logic for the above load statement be:&lt;/P&gt;&lt;P&gt;LOAD LOG&lt;/P&gt;&lt;P&gt;,interval(peek(Out)-In,'mm') as Gap&lt;/P&gt;&lt;P&gt;RESIDENT TIMES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311398#M617486</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-15T17:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311399#M617487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it sorted by ID, then by Date?&lt;/P&gt;&lt;P&gt;are there overlapping Date Sections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311399#M617487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T17:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311400#M617488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently sorted by date/time&lt;/P&gt;&lt;P&gt;There is a possibility of overlapping date sections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311400#M617488</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-15T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311401#M617489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you like to see the difference, if the "LOG" changes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311401#M617489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T17:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311402#M617490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I already have the times for each log. Want to see the gap in minutes between each log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311402#M617490</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-15T17:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311403#M617491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I suppose, that you have dual()-timestamps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;LOG,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Interval(Rangesum(-1*Peek('In'),Out),'mm' ) as DELTA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;resident TIMES;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311403#M617491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T17:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311404#M617492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this but the DELTA returns 00 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311404#M617492</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-15T17:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311405#M617493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;next try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;TimestampFormat&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='M/D/YYYY hh:mm&lt;SPAN style="background: yellow;"&gt;[:ss]&lt;/SPAN&gt;[.fff]';&lt;BR /&gt; &lt;BR /&gt; TIMES:&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; LOG, In, Out&lt;BR /&gt; 1234, 5/1/2017 07:20, 5/1/2017 07:40&lt;BR /&gt; 4567, 5/1/2017 07:50, 5/1/2017 08:20&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;LOG&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('Out')),0,&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Rangesum&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(-&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('Out'),&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;In&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)),'m') &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DELTA&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;In&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Out&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; TIMES; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;DROP&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; TIMES; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 18:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311405#M617493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T18:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find time difference in minutes between end time and begin time of consecutive IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311406#M617494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That appears to do the trick...thanks much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 14:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-time-difference-in-minutes-between-end-time-and-begin-time/m-p/1311406#M617494</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-05-16T14:54:45Z</dc:date>
    </item>
  </channel>
</rss>

