Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate or Union

I have two excel files, one for 2009 and one for 2008. They have identical field names. I want to merge the two tables into one table in the load script. How do I do this?

Thanks,

Stephen

1 Solution

Accepted Solutions
Not applicable
Author

If you load two excel (or any) files with exactly the same fields, they will automatically exist in a single table in QV. Two differentiate between the years I suggest something like this:

LOAD

'2008' as Year,

... excel load here...

FROM excel.xls

then do

LOAD

'2007' as Year,

... excel load here ...

FROM excel2.xls

View solution in original post

3 Replies
Not applicable
Author

If you load two excel (or any) files with exactly the same fields, they will automatically exist in a single table in QV. Two differentiate between the years I suggest something like this:

LOAD

'2008' as Year,

... excel load here...

FROM excel.xls

then do

LOAD

'2007' as Year,

... excel load here ...

FROM excel2.xls

Not applicable
Author

I tried what you noted but it loads as two separate tables. In other words one fields called "Amount" in both tables loads with two different fileds. One as 2008.Amount and one as 2007.Amount, I only want an Amount field.

Stephen

Not applicable
Author

Further detail. It works (so far) I was initially using Qualify and Unqualify which created the separate tables.