<?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 record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663435#M674663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need you help with small problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have excel like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 250&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 168&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I select only the last value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need that in script, not in expressions&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, 12 Aug 2014 10:08:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-12T10:08:50Z</dc:date>
    <item>
      <title>Last record</title>
      <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663435#M674663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need you help with small problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have excel like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 250&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 168&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I select only the last value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need that in script, not in expressions&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, 12 Aug 2014 10:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-record/m-p/663435#M674663</guid>
      <dc:creator />
      <dc:date>2014-08-12T10:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Last record</title>
      <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663436#M674664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to look at peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 10:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-record/m-p/663436#M674664</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-12T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Last record</title>
      <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663437#M674666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put an counter, and use RecNo() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 10:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-record/m-p/663437#M674666</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-08-12T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Last record</title>
      <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663438#M674668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load *, RowNo() as RowNum from &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMax=Peek('RowNum');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load * Resident Table1 where RowNum=$(vMax);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 10:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-record/m-p/663438#M674668</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-12T10:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Last record</title>
      <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663439#M674669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;BR /&gt;load * inline [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A,&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 150&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 150&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 150&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 150&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 250&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 168&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,&amp;nbsp; 75&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vLastA = Peek('A', -1,'Table1');&lt;/P&gt;&lt;P&gt;let vLastB = Peek('B', -1,'Table1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;load '$(vLastA)' as A, '$(vLastB)' as B autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 10:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-record/m-p/663439#M674669</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-12T10:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Last record</title>
      <link>https://community.qlik.com/t5/QlikView/Last-record/m-p/663440#M674670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of getting the last record and keeping it in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;A,B&lt;/P&gt;&lt;P&gt;1,150&lt;/P&gt;&lt;P&gt;1,150&lt;/P&gt;&lt;P&gt;1,150&lt;/P&gt;&lt;P&gt;1,150&lt;/P&gt;&lt;P&gt;1,250&lt;/P&gt;&lt;P&gt;1,168&lt;/P&gt;&lt;P&gt;1,75];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vLastRecords = Peek('B',NoOfRows('tab')-1,'tab'); // can have another variable for field A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 10:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-record/m-p/663440#M674670</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-08-12T10:29:16Z</dc:date>
    </item>
  </channel>
</rss>

