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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To read only one row from excel

Hi Experts,

    i have an excel file with header and fileds in it. i want to read only header while  importing in to qlikview

    Please find the attached sample excel file  in that i have to read only first row

    Any help would be appreciated

1 Solution

Accepted Solutions
Not applicable
Author

Hi Sruti,

Go to Edit script, Click on Table Files button to start File type wizard.

Select your excel , mark header Size as None and  Labels as None. This will make the header record as first row of the table. Then click Next twice and click where clause button.

Select Advance and write WHERE ( RowNo() < 1 ). Then click finish and reload.

The script generated should look something like this

MyHeaders:  // <--Give some name  to the table here

LOAD A,

     B,

     C,

     D,

     E

FROM

test2.xlsx

(ooxml, no labels, table is Sheet1)

WHERE(RowNo() < 1 );

Regards,

Kalpesh

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Load

     Field1,

     Field2,

     FIeld3

From .....TableName

Where RowNo() < 0;

Not applicable
Author

Hi Sruti,

Go to Edit script, Click on Table Files button to start File type wizard.

Select your excel , mark header Size as None and  Labels as None. This will make the header record as first row of the table. Then click Next twice and click where clause button.

Select Advance and write WHERE ( RowNo() < 1 ). Then click finish and reload.

The script generated should look something like this

MyHeaders:  // <--Give some name  to the table here

LOAD A,

     B,

     C,

     D,

     E

FROM

test2.xlsx

(ooxml, no labels, table is Sheet1)

WHERE(RowNo() < 1 );

Regards,

Kalpesh