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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate

I have the following tables:

Entry No_Item No_QuantityEntry TypeDocument No_
3248633224964-1005RC-32538

Table2:

Entry No_Item No_QuantityEntry TypeDocument No_
324863001-95RC-32538
324863192-95RC-32538
196-95RC-32539
387-95RC-32539

I want to concatenate Table 2 with Table 1.

but where document No.s are not the same.

Since RC-32538 already appeared in the first table, only the ;last two records should be concatenated with the first table.

The result table should be as follows:

Entry No_Item No_QuantityEntry TypeDocument No_
3248633224964-1005RC-32538
196-95RC-32539
387-95RC-32539

Can anyone help me with a possible solution.

13 Replies
Not applicable
Author

Hey Kartik,

Use attached QVW hope it might help.

Regards,

Nitesh

anbu1984
Master III
Master III

Try this

RC:

LOAD [Entry No_],

    [Item No_],

    Quantity,

    [Entry Type],

    [Document No_] As Doc

FROM

RC.xlsx

(ooxml, embedded labels, table is Sheet1);

RC1:

Load [Entry No_],[Item No_],Quantity,[Entry Type],[Document No_] As Doc;

LOAD [Entry No_],

    [Item No_],

    Quantity,

    [Entry Type],

    [Document No_]

FROM

RC.xlsx

(ooxml, embedded labels, table is Sheet2)

where not exists (Doc,[Document No_]);

You will get two rows with all fields as Nulls. This is because you have empty rows in Sheet1. You have to delete those rows.

Not applicable
Author

Hi,

Try this script.

Table1:

LOAD

[Entry No_],

[Item No_],

Quantity,

[Entry Type],

[Document No_]

FROM  (Source Path);

Concatenate (Table1)

LOAD

[Entry No_],

[Item No_],

Quantity,

[Entry Type],

[Document No_]

FROM (Source Path)

Where [Document No_] <> RC-32538;

hariprasadqv
Creator III
Creator III

Hi,

use where condetion along with not exists.