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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

TOP X Clause in sentense LOAD

I have a question.

In SQL do you have a clasuse TOP X. e.g.

Select TOP 10 Field1 FROM NombreTabla

but in Qlikview yo cant do

Load TOP 10 Field1 FROM NombreArchivoQvd

thanks in advance

Sergio

Saludos!.

1 Solution

Accepted Solutions
Not applicable
Author

You can use the first keyword to limit the number of rows fetched by a load-statement.
You must also order your dataset on the desired field:

first 10 load Field1 FROM NombreArchivoQvd order by Field1;

/Fredrik

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Not that I'm aware of ... it would be handy though

Not applicable
Author

You can use the first keyword to limit the number of rows fetched by a load-statement.
You must also order your dataset on the desired field:

first 10 load Field1 FROM NombreArchivoQvd order by Field1;

/Fredrik

Not applicable
Author

Thank you so much.