<?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: Next StartDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638920#M234215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are in the right path&lt;/P&gt;&lt;P&gt;If you need to calculate the time stopped by vehicle Order your table by date and vehicle then use peek and previous&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To evaluate next record to identify the last record of each vehicle by date there is a sample in the community&lt;/P&gt;&lt;P&gt;Search it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I arrive to my office I can find it for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hector garcia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2014 12:20:20 GMT</pubDate>
    <dc:creator>hectorgarcia</dc:creator>
    <dc:date>2014-06-04T12:20:20Z</dc:date>
    <item>
      <title>Next StartDate</title>
      <link>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638918#M234213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My trip data contains the following:&lt;/P&gt;&lt;P&gt;Trips:&lt;/P&gt;&lt;P&gt;Load TripId&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Vehicle&lt;/P&gt;&lt;P&gt;TripDuration&lt;/P&gt;&lt;P&gt;TripStartTimeDate&lt;BR /&gt;TripEndTimeDate&lt;/P&gt;&lt;P&gt;and loads of other fields, the table also links to various other tables, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the Total Time Stopped.&amp;nbsp; I was thinking of using the &lt;STRONG&gt;Next TripStartTimeDate - Current TripEndTimeDate&lt;/STRONG&gt; to get the answer.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cannot get the correct function to use, both Peek() and Previous() looks backwards and there is no Next() function to look forward into the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This data needs to be presented by Date, Customer and Vehicle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 12:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638918#M234213</guid>
      <dc:creator>joggiek</dc:creator>
      <dc:date>2014-06-04T12:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Next StartDate</title>
      <link>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638919#M234214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current TripStartTimeDate - Previous TripEndTimeDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;should give you exactly the same result ....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;you may for example:&lt;/P&gt;&lt;P&gt;a) add rowno() as id innto first table&lt;/P&gt;&lt;P&gt;b) join with&amp;nbsp; load &lt;STRONG&gt;Current TripStartTimeDate - Previous TripEndTimeDate, &lt;/STRONG&gt;row() -1 as id from your table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 12:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638919#M234214</guid>
      <dc:creator />
      <dc:date>2014-06-04T12:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Next StartDate</title>
      <link>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638920#M234215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are in the right path&lt;/P&gt;&lt;P&gt;If you need to calculate the time stopped by vehicle Order your table by date and vehicle then use peek and previous&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To evaluate next record to identify the last record of each vehicle by date there is a sample in the community&lt;/P&gt;&lt;P&gt;Search it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I arrive to my office I can find it for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hector garcia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 12:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Next-StartDate/m-p/638920#M234215</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2014-06-04T12:20:20Z</dc:date>
    </item>
  </channel>
</rss>

