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

Dynamic Data Source Load into QlikView and create QVD?

Hi Everyone,

I am assigned a project, which involves loading data from multiple excels having same tabs in all.

This excel data from 3 tabs need to be loaded into qlik view and create 3 qvd's.

I have to create a data load from multiple excels into these 3 qvd's, and there has to be no code change.

Currently, I have 3 excels loading data...but if they were to be 10 excels, 25 excels,etc?

Can someone help me in getting this logic and code...

3 Replies
jonasheisterkam
Partner - Creator III
Partner - Creator III

Hi,

to adress more Files in one Load you can use the * wildcard.

You can use the Filelist, in the help you find a sample with a for each loop.

Some other functions you can use are the sql connect to excel files to read metadata.

With error mode you can use the wildcards also if there are fail pos loads witch generates errors.

You can use a load in the loop to generate a variable wich define the real load syntax for each file. With this you can react on some differences in the sources.

MarcoWedel

tabSheet1:

LOAD *

FROM path\*.xlsx

(ooxml, embedded labels, table is sheet1);

tabSheet2:

LOAD *

FROM path\*.xlsx

(ooxml, embedded labels, table is sheet2);

tabSheet3:

LOAD *

FROM path\*.xlsx

(ooxml, embedded labels, table is sheet3);

Store tabSheet1 into tabSheet1.qvd (qvd);

Store tabSheet2 into tabSheet2.qvd (qvd);

Store tabSheet3 into tabSheet3.qvd (qvd);

hope this helps

regards

Marco

naziralala
Creator
Creator
Author

Thanks. This helped.