<?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 How to select Last 30 Records? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232794#M84381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;P&gt;AFAIK it is not possible to do &lt;B&gt;LoadOrder desc&lt;/B&gt;. I can suggest two alternatives&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load without a sort qualifier, and see if the load order corresponds to sorting by one or more of the fields. Then sort desc by that/those field(s).&lt;/LI&gt;&lt;LI&gt;Do the load in two passes - first load into a temp table with count field using &lt;B&gt;RowNo() AS RowCount&lt;/B&gt;. Then load the last 30 rows from the temp table into the final table.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 09:18:37 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2010-07-29T09:18:37Z</dc:date>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232788#M84375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried Set Analysis \ use peek function but in the i couldn't found the proper solution to select last 30 records. Can anybody help me out?&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 12:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232788#M84375</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-07-24T12:53:57Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232789#M84376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;P&gt;Can you do the determination of the last 30 in the load script?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 14:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232789#M84376</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-24T14:37:26Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232790#M84377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can try... not sure either it will surve the purpose or not.&lt;/P&gt;&lt;P&gt;I know there is a clause first but last is not there.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;PRE style="margin: 0px;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;BR style="margin-left:40px;" /&gt;First 10 Load * from abc.csv;&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;Regards,&lt;BR /&gt;Shumail Hussain&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 14:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232790#M84377</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-07-24T14:55:56Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232791#M84378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select first 30 record and order data in descending order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 15:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232791#M84378</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-07-24T15:17:56Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232792#M84379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the date field I am using the below expression but for others I think I can try Sunil's Suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;=if(year(MnYr)=2010 or month(MnYr)=month(today()-30),(Sum(Count)))&lt;BR /&gt;&amp;lt;pre&amp;gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shumail Hussain&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 10:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232792#M84379</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-07-26T10:23:59Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232793#M84380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is the ways then, How would i modify the below code to first sort it by loadOrder and then select first 30&lt;/P&gt;&lt;P&gt;&lt;I&gt;RBG_Fin_Grid:&lt;BR /&gt;&lt;/I&gt;&lt;B&gt;CrossTable&lt;/B&gt;(RBG_Fin_MnYr, RBG_Fin_Amount)&lt;BR /&gt;&lt;B&gt;LOAD&lt;BR /&gt;&lt;/B&gt; [RB] &lt;B&gt;as&lt;/B&gt; Fin_Category, EOP, [NII],&lt;BR /&gt;[FEE_INC], [OI], [FEE_OI]&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; [$(abc)\Jul-10\PD_Jul2010.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 2 lines, table is [2008], filters(&lt;BR /&gt;Remove(Row, RowCnd(Interval, Pos(Top, 7), Pos(Top, 96), Select(1, 0))),&lt;BR /&gt;Transpose()&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;Like below????&lt;/P&gt;&lt;P&gt;&lt;I&gt;RBG_Fin_Grid:&lt;BR /&gt;&lt;/I&gt;&lt;B&gt;First 30&lt;/B&gt; CrossTable(RBG_Fin_MnYr, RBG_Fin_Amount)&lt;BR /&gt;&lt;B&gt;LOAD&lt;BR /&gt;&lt;/B&gt; [RB] &lt;B&gt;as&lt;/B&gt; Fin_Category, EOP, [NII],&lt;BR /&gt;[FEE_INC], [OI], [FEE_OI]&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; [$(abc)\Jul-10\PD_Jul2010.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 2 lines, table is [2008], filters(&lt;BR /&gt;Remove(Row, RowCnd(Interval, Pos(Top, 7), Pos(Top, 96), Select(1, 0))),&lt;BR /&gt;Transpose()&lt;BR /&gt;)) Order by &lt;B style="mso-bidi-font-weight:normal;"&gt;LoadOrder desc&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;donot know how can i order my data by loadorder desc&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 13:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232793#M84380</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-07-27T13:50:32Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232794#M84381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;P&gt;AFAIK it is not possible to do &lt;B&gt;LoadOrder desc&lt;/B&gt;. I can suggest two alternatives&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load without a sort qualifier, and see if the load order corresponds to sorting by one or more of the fields. Then sort desc by that/those field(s).&lt;/LI&gt;&lt;LI&gt;Do the load in two passes - first load into a temp table with count field using &lt;B&gt;RowNo() AS RowCount&lt;/B&gt;. Then load the last 30 rows from the temp table into the final table.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 09:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232794#M84381</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-29T09:18:37Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232795#M84382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try ...&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;models:First 10 Load * from abc.csv;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232795#M84382</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2010-07-30T12:50:38Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232796#M84383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry ... this is propose for Last 3 records...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; * &lt;B&gt;INLINE&lt;/B&gt; [&lt;/P&gt;&lt;P&gt;Year,Indicator_Name,Values&lt;/P&gt;&lt;P&gt;2000,IndicA,50&lt;/P&gt;&lt;P&gt;2001,IndicA,60&lt;/P&gt;&lt;P&gt;2002,IndicA,70&lt;/P&gt;&lt;P&gt;2000,IndicB,50&lt;/P&gt;&lt;P&gt;2001,IndicB,60&lt;/P&gt;&lt;P&gt;2002,IndicB,70&lt;/P&gt;&lt;P&gt;2000,IndicC,50&lt;/P&gt;&lt;P&gt;2001,IndicC,60&lt;/P&gt;&lt;P&gt;2002,IndicC,70&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;qualify&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;last:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;First&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;/Luis 3 &lt;B&gt;Load&lt;/B&gt; * &lt;B&gt;Resident&lt;/B&gt; T1 &lt;B&gt;order&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; altnumber; *;*, Autonumber(Indicator_Name) &lt;B&gt;as&lt;/B&gt; Indicator_Key, 100000000 - RowNo() &lt;B&gt;as&lt;/B&gt; altnumber; &lt;B&gt;//artificio&lt;/B&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 13:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232796#M84383</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2010-07-30T13:19:28Z</dc:date>
    </item>
    <item>
      <title>How to select Last 30 Records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232797#M84384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1754.solution.txt:550:0]&lt;/P&gt;&lt;P&gt;sorry ... here clear in .txt attach ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 13:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Last-30-Records/m-p/232797#M84384</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2010-07-30T13:23:37Z</dc:date>
    </item>
  </channel>
</rss>

