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

Load same times 3 txt

Hello,

How can I Load 3 files that contain the same information. I test with concatenate and load all the same time but when I want sum all of the QlikView gives me another Sum.

Could be a Example too thanks!

1 Solution

Accepted Solutions
rustyfishbones
Master II
Master II

You need to use the *, so for example if the 3 files are

201401.txt

201312.txt

201311.txt

You can load all 3 text files (as long as they are located in the same folder) by saying

LOAD *

FROM YourFolder\*.txt

I hope that helps

Regards

Alan

View solution in original post

6 Replies
rustyfishbones
Master II
Master II

You need to use the *, so for example if the 3 files are

201401.txt

201312.txt

201311.txt

You can load all 3 text files (as long as they are located in the same folder) by saying

LOAD *

FROM YourFolder\*.txt

I hope that helps

Regards

Alan

MK_QSL
MVP
MVP

If you want to merge them you need to either use Join if not all columns are same but in case if you have all columns are same, use concatenate.

If you want to keep all table separate use noconcatenate.

let us have the sample file for further details.

rustyfishbones
Master II
Master II

there is also a video on youtube called

QlikView - Loading Data From Multiple Files - YouTube

I hope that helps

aveeeeeee7en
Specialist III
Specialist III

Hi Pablo

Make Flags for each Table:

eg.

Table 1:

Load

A,

B,

'1' AS Flag

Concatenate

Table 2:

Load 

A,

B,

'2' AS Flag

Concatenate

Table 3:

Load 

A,

B,

'3' AS Flag

Reload this Table and when you are calculating the Sum use this Flag Also

eg. Sum({<Flag={'1'}>}A)

Hope it Works.

Regards

Aviral Nag

pgalvezt
Specialist
Specialist
Author

Thank you very much!

rustyfishbones
Master II
Master II

Your Welcome