Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading null rows from the excel

Dear All,

            Do you have any idea on how can i load null rows from excel files. for example this is my excel sheet.

wr


wx






rt

Qlikview interpret it as

wr
wx
rt

....so, can I load it just as it is in excel, with 7 rows rather than 3 rows ???

9 Replies
Not applicable
Author

Seems that using ODBC/OLEDB is the only way.     is there any other way...??

SunilChauhan
Champion
Champion

try this

Table1:

LOAD if(isnull(fieldname1), 'Null'&rowno(),fieldname1) as fieldname1,

if(isnull(fieldname2), 'Null'&rowno(),fieldname2) as fieldname2

FROM

(ooxml, embedded labels, table is Sheet1);

hope this helps

Sunil Chauhan
Not applicable
Author

Hi Sunil,

          It does not work.

Not applicable
Author

LOAD  rowno() as field1,

Col1,

Col2

FROM

Xxxxx.xlsx

(ooxml, embedded labels, table is Sheet1);

Not applicable
Author

Hi Philippe,

                    It does not work, neither RecNo() works.

Not applicable
Author

If you save tour excel files à CSV file, you should be able to do the load

Using the rowno() function as I wrote in my last answer.

Hope that helps

Philippe

Not applicable
Author

In a better English

If you save your excel file as a CSV you should be able to load the nulls

Using the rowno() as I wrote before.

Philippe

Not applicable
Author

Hi Philippe,

I don't think it is a good idea to save an excel file having 50-60 sheets asa csv. We will need separate csv for every sheet.

One thing we can do is just can put full border in excel sheet and it will loadnull rows also. But this again involves manipulating with source, which I don'twant.

Rather, I feel the best solution in this case will be load data from excelusing ODBC which will give null rows as well without manipulating source data.

But, As we know one problem has many possible solutions, so I just fulfilledmy requirement with some more script rather than using ODBC.

Anyways, thanks for your suggestions.

prachisangewar1
Contributor II
Contributor II

hi, can advise what solution you used ? I am also facing the same issue.

Thanks in Advance.