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

How to load limited rows from Excel

I want to load rows 1 to 10 and 21 to 30 from an excel table, but not 11-20 and everything above 30.

I use Where Recno<=10 in load script,

but how to load rows 21-30 in the same time?

Thanks in advance !

1 Solution

Accepted Solutions
mjayachandran
Creator II
Creator II

Something like this should satisfy both your conditions:

YourTable:

LOAD *

FROM

$(Path)

(ooxml, embedded labels, table is Sheet1)

where

RecNo()>=1 and RecNo()<=10 or

RecNo()>=21 and RecNo()<30;

View solution in original post

3 Replies
Not applicable
Author

Table:

Load

        Filedname,

        recno()

from sourcetable;

Final:

Load

        Filedname,

        recno()

resident Table where recno<=10 and Recno>20;

maxgro
MVP
MVP

I think you can use recno with and or

:

LOAD @1, @2, @3

FROM [1.xls] (biff, no labels, table is Sheet1$)

where RecNo() <= 10 or (RecNo() >= 21 and Recno() <=30)

;

mjayachandran
Creator II
Creator II

Something like this should satisfy both your conditions:

YourTable:

LOAD *

FROM

$(Path)

(ooxml, embedded labels, table is Sheet1)

where

RecNo()>=1 and RecNo()<=10 or

RecNo()>=21 and RecNo()<30;