<?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 Calculate time difference between timestamps on different rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1765054#M454216</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a view on the table in the database that contains all orderlines to be picked in the warehouse.&lt;/P&gt;&lt;P&gt;A person starts an order that containers multiple lines for 1 customer.&lt;/P&gt;&lt;P&gt;Those lines are then processed in order of closest location in the warehouse.&lt;/P&gt;&lt;P&gt;When the person starts a line on his barcodescanner a "start-timestamp" is written into the table.&lt;/P&gt;&lt;P&gt;now i&amp;nbsp; calculate in excel the time between the timestamp on 1 row and the time stamp on the row before, but only if the previous row has the same id_picking&amp;nbsp; and the it is being treated on is the same day.&lt;/P&gt;&lt;P&gt;If the Id-picking or the date of the picking is not the same as the&amp;nbsp; previous row i add a standard time of 2 minutes, assuming that's the time it takes to start a new order or restart the same order but on the next working day.&lt;/P&gt;&lt;P&gt;In excel this is rather simple, i first order all the data on the date of the picking, picking Id and then the timestamp. that way i am sure that if i compare to the previous row it is correct.&lt;/P&gt;&lt;P&gt;But if i import this view into qlikview then i'm stuck on how to do this.&lt;/P&gt;&lt;P&gt;Anybody who might have an idea on how to do this?&lt;/P&gt;&lt;P&gt;i attached a subset of the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Nov 2020 14:39:54 GMT</pubDate>
    <dc:creator>chriscools</dc:creator>
    <dc:date>2020-11-28T14:39:54Z</dc:date>
    <item>
      <title>Calculate time difference between timestamps on different rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1765054#M454216</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a view on the table in the database that contains all orderlines to be picked in the warehouse.&lt;/P&gt;&lt;P&gt;A person starts an order that containers multiple lines for 1 customer.&lt;/P&gt;&lt;P&gt;Those lines are then processed in order of closest location in the warehouse.&lt;/P&gt;&lt;P&gt;When the person starts a line on his barcodescanner a "start-timestamp" is written into the table.&lt;/P&gt;&lt;P&gt;now i&amp;nbsp; calculate in excel the time between the timestamp on 1 row and the time stamp on the row before, but only if the previous row has the same id_picking&amp;nbsp; and the it is being treated on is the same day.&lt;/P&gt;&lt;P&gt;If the Id-picking or the date of the picking is not the same as the&amp;nbsp; previous row i add a standard time of 2 minutes, assuming that's the time it takes to start a new order or restart the same order but on the next working day.&lt;/P&gt;&lt;P&gt;In excel this is rather simple, i first order all the data on the date of the picking, picking Id and then the timestamp. that way i am sure that if i compare to the previous row it is correct.&lt;/P&gt;&lt;P&gt;But if i import this view into qlikview then i'm stuck on how to do this.&lt;/P&gt;&lt;P&gt;Anybody who might have an idea on how to do this?&lt;/P&gt;&lt;P&gt;i attached a subset of the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 14:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1765054#M454216</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2020-11-28T14:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time difference between timestamps on different rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1765062#M454217</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28754"&gt;@chriscools&lt;/a&gt;&amp;nbsp; see the attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 16:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1765062#M454217</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-11-28T16:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time difference between timestamps on different rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1768079#M454418</link>
      <description>&lt;P&gt;Thanx a lot! That worked great!&lt;/P&gt;&lt;P&gt;Now i can also implement this for the other scanprocesses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 12:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-time-difference-between-timestamps-on-different-rows/m-p/1768079#M454418</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2020-12-12T12:00:54Z</dc:date>
    </item>
  </channel>
</rss>

