Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good afternoon,
perhaps it is a simple matter but I'm not finding the solution. I have two Excel files with the same columns. I'm trying to load both files with "concatenate" in order to get one only table with records of both files, but instead I get the two tables separately and a third one with synthetic key that includes all fields.
This is the code:
Dedications:
LOAD
"Date"
"Date / Time"
Project,
"Project Category"
Company,
Who,
"Hours"
minutes,
"Decimal Hours"
description,
"Task List"
Task,
"Parent Task"
"Is Sub-task"
"Is it Billable?"
"Invoice Number"
"Tags"
FROM [lib: //AttachedFiles/teamwork.xlsx]
(OOXML, embedded labels, table is Overview);
Concatenate (DEDICATIONS)
LOAD
"Date"
"Date / Time"
Project,
"Project Category"
Company,
Who,
"Hours"
minutes,
"Decimal Hours"
description,
"Task List"
Task,
"Parent Task"
"Is Sub-task"
"Is it Billable?"
"Invoice Number"
"Tags"
FROM [lib: //AttachedFiles/inplants.xlsx]
(OOXML, embedded labels, table is Inplants);
Have you tired Outer Join instead of Concatenate? It would be more helpful if you can upload a .qvf related to this issue.
Thanks.
Hello,
Outer Join doesn't work too, and I think I should use Concatenate because I want records of second table added to records of first table. Sorry but I can't upload qvf of this application.
Just one question, Does Concatenate works with Excel in the same way it works with database tables?
Caution case sensitive in the names of tables:
Concatenate (DEDICATIONS)
Another idea.
Try without instruction Concatenate
Thank you Frédéric, but it still creates that third synthetic key table. Maybe I have a concept error about attaching Excels in the connection section and the load script. I'm going to review my work and I will write any news here.
Hello, I finally have found the error on my script. I didn't see the "automatic generated section" when importing Excels. That section was importing the information, and I was importing the information again with a new load script in the main section.
Hope this helps to other beginners.
Best regards,
David.