<?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 Last 5 rows of data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-5-rows-of-data/m-p/650268#M676372</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 have a back end table that looks something like the file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each row and each Key I want to be able to look at previous 4 rows and count the number of Advisor lines and calculate the field 'Last5Count' as in the excel attached, could someone please suggest a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note i have many more fields and have 800k rows worth of data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 10:47:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-10T10:47:07Z</dc:date>
    <item>
      <title>Last 5 rows of data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-5-rows-of-data/m-p/650268#M676372</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 have a back end table that looks something like the file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each row and each Key I want to be able to look at previous 4 rows and count the number of Advisor lines and calculate the field 'Last5Count' as in the excel attached, could someone please suggest a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note i have many more fields and have 800k rows worth of data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 10:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-5-rows-of-data/m-p/650268#M676372</guid>
      <dc:creator />
      <dc:date>2014-06-10T10:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Last 5 rows of data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-5-rows-of-data/m-p/650269#M676373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; *,&lt;BR /&gt; SubStringCount(Peek(Identifer_by)&amp;amp;Peek(Identifer_by,-2)&amp;amp;Peek(Identifer_by,-3)&amp;amp;Peek(Identifer_by,-4)&amp;amp;Peek(Identifer_by,-5),'Advisor') as Last5Count;&lt;/P&gt;&lt;P&gt;LOAD Key, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LineCount, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Post_Diff_NonSystem, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifer_by, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Advisor_Counter, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System_Counter, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_Counter, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NonSystem_Counter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Last5Count&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/C&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-5-rows-of-data/m-p/650269#M676373</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T11:02:11Z</dc:date>
    </item>
  </channel>
</rss>

