Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problum in Loading multiple excel files

Hi,

I am receiving daily production report  from the users in below format and file name.

"Production Report of jan.xls"

 

IDName01/01/201501/02/201501/03/2015
1a109020
2b204630
3c304598

I am going to get same format data for February  also .And file name will be "Production Report of Feb.xls"

Here the problem is i can load all the excel file from a folder which is having same nomenclature and header but in my case first and second column will have the same header but from third column it won't as from here date is going to start.

I am using crosstable to making date as a field in Qlikview.

Please advise how can i resolve this issue.

Your help on this regard will be appreciated.

Thanks & regards,

Himanshu

1 Solution

Accepted Solutions
Not applicable
Author

Hi Himanshu,

if your underlying excels have the same first two fields like that, then you shouldn't need to loop and can just use a crosstable.

TableName:

Crosstable(Date,Value,2)

Load *

From [Production Report of*].xls

the wildcard star will load all the excel and as the first two fields are the same in each excel followed by your date columns, the load will auto concatenate all the excel for you.

This does rely on the excels being in the same folder.

hope that helps

Joe

View solution in original post

7 Replies
Not applicable
Author

Himanshu could you clear your problem statement. I am not able to understand what is your problem.

Not applicable
Author

I want to load all excel file from a folder by single load statement.


"Production Report of jan.xls"

"Production Report of feb.xls"

"Production Report of march.xls"

"Production Report of Apr.xls"

These files consisting date wise production data as below format.

Jan month file look like this -

IDName01/01/201501/02/201501/03/2015
1a109020
2b204630
3c304598

Feb month file look like this -

IDName02/01/201502/02/201502/03/2015
1a109020
2b204630
6t304598
4d402035
Not applicable
Author

Okk....

You should check out this thread...and i think you could manage to make some changes by applying an additional for loop in the value part so as to loop through the diffrerent values.

http://community.qlik.com/docs/DOC-1306

Not applicable
Author

Hi Himanshu,

if your underlying excels have the same first two fields like that, then you shouldn't need to loop and can just use a crosstable.

TableName:

Crosstable(Date,Value,2)

Load *

From [Production Report of*].xls

the wildcard star will load all the excel and as the first two fields are the same in each excel followed by your date columns, the load will auto concatenate all the excel for you.

This does rely on the excels being in the same folder.

hope that helps

Joe

Not applicable
Author

Hi Joe,

You are right.

This is really a good solution.

Not applicable
Author

Thank very much Joe it is working fine I got exactly what i need

Not applicable
Author

No problem, glad to help