<?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: Re: Last RowNo() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617556#M227576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/515553"&gt;Re: Logic&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 20:57:56 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2014-04-24T20:57:56Z</dc:date>
    <item>
      <title>Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617550#M227570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one Question on Rowno()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very easy to do calculations based on first Row by using If(Rowno()=1,Your expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if i want last row, what i would write in Expresssion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Rowno()=?,Your expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What to write in Place of ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617550#M227570</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-04-24T19:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617551#M227571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think, you may for example:&lt;/P&gt;&lt;P&gt;a) load your table with additional field = rowno()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next you may load the same table resident but order your data by this additional field descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 2'nd step your last row will be first &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617551#M227571</guid>
      <dc:creator />
      <dc:date>2014-04-24T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617552#M227572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;If(Rowno()=NoOfRows(),Your expression)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617552#M227572</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-04-24T19:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617553#M227573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U should use peek in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say u have loaded the table as table1 and rowno() as rownumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use peek like&lt;/P&gt;&lt;P&gt;let variable1=peek('rownumber',-1,'table1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use a resident and use the variable1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1 denotes last row in the table(property of (peek)&lt;/P&gt;&lt;P&gt;0 represents 1sr row, 1 represents second.....&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617553#M227573</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-04-24T19:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617554#M227574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you help me in the Attached Qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help would be Appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617554#M227574</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-04-24T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617555#M227575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what kind of sorting you are doing in your original table. Can you explain your logic of how you want to calculate your numbers? what kind of output are you looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can give you this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(rowno()=NoOfRows(),Count(DISTINCT if(TrnType='MOB',CommonEmpCode)),below([Opening MOB]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it does not replicate the values in your original table, since they aren't in the reverse order. To figure out what formula you need, you need to figure out what kind of sorting you have in the table. Not sure if you'll be able to use above, below, rowno(). You might have to do something in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617555#M227575</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-04-24T20:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617556#M227576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/515553"&gt;Re: Logic&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617556#M227576</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-04-24T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Last RowNo()</title>
      <link>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617557#M227577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If thats the case, then the formula I gave you should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;=if(rowno()=NoOfRows(),Count(DISTINCT if(TrnType='MOB',CommonEmpCode)),below([Opening MOB]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Please find attached.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 13:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-RowNo/m-p/617557#M227577</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-04-25T13:02:59Z</dc:date>
    </item>
  </channel>
</rss>

