Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Skip first few lines in a csv file

Morning all,

Is there a way i can import a csv file but skip the first few lines? I have a bunch of info I don't need in the first row.

Thanks,

Tony

3 Replies
Not applicable
Author

Hi

You can use a where clause.

If it does not have anything to differentiate the data you want returned and th data that you don't want returned, add a field to the csv file, do the where clause on there.

Hopes this helps.

gandalfgray
Specialist II
Specialist II

Use the "header is" clause of the Load-statement:

LOAD @1,
@2
FROM
S:\QVApps\wherever\whatever\alittlefile.txt
(txt, codepage is 1252, no labels, delimiter is '\t', msq, header is 3 lines);

Or in the File wizard:

Set the figure to whatever number of lines you have of course... I just used 3 as an example here

Not applicable
Author

Thanks Goran, that's just what I was after.

Tony