Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
rajareddyjkl
Contributor III
Contributor III

last 100 records

hi 

i have  one table i  want  last  100 records in  table

Labels (1)
4 Replies
Anil_Babu_Samineni
MVP
MVP

How about this?

Table:

First 10

Load * From Table Order By FieldName Desc;

OR

Table:

Load * from Table;

NoConcatenate

Final:

First 10

LOAD * Resident Table Order By FieldName desc;

DROP Table Table;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
poppypearce
Creator
Creator

try using peek function in your load script..

its_anandrjs
Champion III
Champion III

In your table add one field for counting the rows Ex:- Rowno() as Rid and then use this field to load last 100 data from the table.

NoConcatenate

LOAD * Resident SourceTable Where Rid > 100;

DROP Table SourceTable;

navin
Contributor
Contributor

Table :
Load
RecNo() as Sno,
RowNo() as Rownum
 resident  Transact where Sno<=100 order by Sno desc ;      //Transact is already loaded table .