<?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 Referencing the next record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314466#M116035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using&lt;EM&gt; "order by"&lt;/EM&gt; descending,&amp;nbsp; the &lt;EM&gt;"previous"&lt;/EM&gt; behaviour&amp;nbsp; is like a &lt;EM&gt;"next"&lt;/EM&gt;&amp;nbsp; (that does not exists....)&lt;/P&gt;&lt;P&gt;I think it's a little boring using previous for each field !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jan 2012 14:55:16 GMT</pubDate>
    <dc:creator>robertomontanar</dc:creator>
    <dc:date>2012-01-29T14:55:16Z</dc:date>
    <item>
      <title>Referencing the next record</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314464#M116033</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;I am trying to check the average time for each location, The problem is that we have only trackdate and need to find the difference between tracktime for first record to second record. we need to find the difference between first row date to second row date. The last row is not required as there is no possibility of finding the average time. Apart from this we need to change the number format to date. In qlikview we can change the format but i am trying to find this through Query.&amp;nbsp; and then i have to add this query to existing script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 330pt; border-collapse: collapse;" width="439"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" height="20" style="border: 0px black; width: 42pt; height: 15pt; background-color: transparent;" width="56"&gt;&lt;SPAN style="font-family: Calibri;"&gt;12345&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; width: 58pt; background-color: transparent;" width="77"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2662089&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; width: 69pt; background-color: transparent;" width="92"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Zua&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; width: 51pt; background-color: transparent;" width="68"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;20090624&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; width: 53pt; background-color: transparent;" width="70"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;9111937&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; width: 57pt; background-color: transparent;" width="76"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;suresh&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;12345&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2671220&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Gas&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;20090710&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;9082237&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;mahesh&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;12345&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2694593&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Gfil&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;20090826&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;9151604&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;sekar&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 20:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314464#M116033</guid>
      <dc:creator />
      <dc:date>2012-01-27T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing the next record</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314465#M116034</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;it's counter-intuitive, but you want to use previous()!  The trick is to&lt;/P&gt;&lt;P&gt;use it on every field. i.e. something like this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;    previous(field1) as field1,&lt;/P&gt;&lt;P&gt;    previous(field2) as field2,&lt;/P&gt;&lt;P&gt;    // (etc)&lt;/P&gt;&lt;P&gt;    previous(fieldN) as fieldN,&lt;/P&gt;&lt;P&gt;    datetime-previous(datetime) AS Duration&lt;/P&gt;&lt;P&gt;Resident YourInputDataTable;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 23:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314465#M116034</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2012-01-27T23:59:59Z</dc:date>
    </item>
    <item>
      <title>Referencing the next record</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314466#M116035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using&lt;EM&gt; "order by"&lt;/EM&gt; descending,&amp;nbsp; the &lt;EM&gt;"previous"&lt;/EM&gt; behaviour&amp;nbsp; is like a &lt;EM&gt;"next"&lt;/EM&gt;&amp;nbsp; (that does not exists....)&lt;/P&gt;&lt;P&gt;I think it's a little boring using previous for each field !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2012 14:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-the-next-record/m-p/314466#M116035</guid>
      <dc:creator>robertomontanar</dc:creator>
      <dc:date>2012-01-29T14:55:16Z</dc:date>
    </item>
  </channel>
</rss>

