Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Not applicable

Table integration

Hello!

I want to integrate 2 tables below, and get the integrated table.

I would appreciated if you could tell me a sample of load script.

[table1]

A, B

1, 2

2, 2

[table2]

A, C

3, 3

3, 4

[Integrated table]

A, B, C

1, 2, -

2, 2, -

3, -, 3

3, -, 4

Thanks in advance.

1 Solution

Accepted Solutions

Re: Table integration

You can use the CONCATENATE keyword to force concatenation of records from a source table to a table created earlier in the script.

[Integrated table]:

LOAD  A, B FROM ...somewhere...;

CONCATENATE ([Integrated table])

LOAD A,C FROM ...somewhere else...;

4 Replies

Re: Table integration

You can use the CONCATENATE keyword to force concatenation of records from a source table to a table created earlier in the script.

[Integrated table]:

LOAD  A, B FROM ...somewhere...;

CONCATENATE ([Integrated table])

LOAD A,C FROM ...somewhere else...;

Not applicable

Re: Table integration

Thank you so much for your quick response!!

As your script, I tried, but I have got an error"Table AA not found".

Could you give me more advice??

the following is my script.

---------------

AA:
Load *
Resident A;

CONCATENATE([AA])

Load *
Resident B;

Re: Table integration

Hi, seems that you are previously loading table 'A', with the same fields as 'AA' (because the use of '*'), so it's autoconcatenating in table 'A', to avoid this you can use 'NoConcatenate':

AA:

NoConcatenate
Load *
Resident A;

CONCATENATE([AA])

Load *
Resident B;

If you keep all tables it will create a lot of syntethic keys (tables joined by more than one field), maybe you want something like:

Concatenate (A)

LOAD * Resident B;

DROP Table B;

Or try renaming fields in 'AA' table to avoid unwanted keys.

Not applicable

Re: Table integration

Thank you very much!

I resolved the problem. Thanks again.