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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Skipping Lines when loading data

Is there a way to skip particular lines when loading data? Eg. I have an excel file that is generated on a daily basis. However one of the fields has both numeric data and not. I am interested in Qlikview to load only the numeric ones. So programmatically I would check if the field is numeric, if false I would skip to next line. But I don't know how to do this in Qlikview. Any help would be much appreciated.

regards,

Roberto

1 Solution

Accepted Solutions
Jason_Michaelides
Partner - Master II
Partner - Master II

Just add a simple WHERE clause to your load statement.  For example:

Data:

LOAD

     *

FROM

[Yourfile.xlsx]

(ooxml, embedded labels, table is Houses...)

WHERE IsNum(YourField);

This will only load rows where the value of field YourField is numeric.

Hope this helps,

Jason

View solution in original post

2 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

Just add a simple WHERE clause to your load statement.  For example:

Data:

LOAD

     *

FROM

[Yourfile.xlsx]

(ooxml, embedded labels, table is Houses...)

WHERE IsNum(YourField);

This will only load rows where the value of field YourField is numeric.

Hope this helps,

Jason

Not applicable
Author

Thank you very much.