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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Record

Hi Experts,

I have  one table  fields  like  number ,name,location each field having 25 records.Here my question is

how to get first 5 and last 5 records?

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

During load you should be able specify

For First 5

TableName:

FIRST 5

LOAD YourFields....

FROM....

For Last 5

TableName:

LOAD RowNo() as RowNum,

          YourFields

FROM....

FinalTable:

NoConcatenate

FIRST 5

LOAD *

Resident TableName

Order By RowNum desc;

Drop Table TableName;