Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

load just last row from excel

hi

i want load just last row from excel file

i see post about this problem but dont work for me

load last n rows from excel

please guide me

tanks

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

temp:

LOAD

          A,

          B,

          C,

          D

FROM

(ooxml, embedded labels, table is Sheet1);


LET a = NoOfRows('temp');

NoConcatenate

Final:

LOAD

       *

Resident temp Where RecNo()=$(a);

DROP Table temp;

Note: Try RecNo() unlike rowno() in the post you read.

View solution in original post

5 Replies
tresesco
MVP
MVP

If those solutions don't work for you, it could be that the issue is a specific one for your file or how you are trying. Could you explain- how your excel looks like  and how exactly you are trying?

Not applicable
Author

my file is normal

please see 1.qvw file

tresesco
MVP
MVP

Try like:

temp:

LOAD

          A,

          B,

          C,

          D

FROM

(ooxml, embedded labels, table is Sheet1);


LET a = NoOfRows('temp');

NoConcatenate

Final:

LOAD

       *

Resident temp Where RecNo()=$(a);

DROP Table temp;

Note: Try RecNo() unlike rowno() in the post you read.

Not applicable
Author

i have 3 error

1-

Field not found - <A>

temp:

LOAD

          A,

          B,

          C,

          D

FROM

(ooxml, embedded labels, table is Sheet1)

2-

Table not found error

Table 'temp' not found

NoConcatenate

Final:

LOAD

       *

Resident temp Where recno()=

3-

Table not found

DROP TABLES statement

please send edited file

thanks

Not applicable
Author

i change a,b,c,d to * and its ok

thankyou