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: 
vchuprina
Specialist
Specialist

How dynamically identify the row where data start?

I received files with different row where data start. Sometimes this data start from 10 row, sometimes in 13.

Header.png

In picture you can see part of my file.

Part of my script:

FROM

[\\449629-file1\Data - new\Current\MIS-IB004*.xlsx]

(ooxml, embedded labels, header is 6 lines);

So how dynamically identify header row?

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
3 Replies
Gysbert_Wassenaar

Use a where clause that checks the data in the row to see if it should be loaded or not. For example:

LOAD *

FROM ....

WHERE Len(Trim(MyField))>0;

In the above Len(Trim(MyField))>0 checks if the field MyField contains a non-null value.


talk is cheap, supply exceeds demand
vchuprina
Specialist
Specialist
Author

I have different header line

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").