Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate two tables and just replacing a specified column

Hello Experts,

I am starting to learn concatenate function in Qlikview and I want to replace column f2 from table 2 into table 1

so the intended result as the following table:

f1f2f3
aac4
bbc5
cbc6
dbc2
ecc3

table2:

f1f2f3
aac1
dbc2
ecc3

table1:

f1f2f3
abc4
bbc5
cb

c6

I used the code below and the result table turn out to be this:

f1f2f3
aac1
abc4
bbc5
cbc6
dbc2
ecc3

LOAD f1,

     f2,

     f3

FROM

C:\table1.xlsx

(ooxml, embedded labels, table is Sheet1);

Concatenate

LOAD f1,

     f2,

     f3

FROM

C:\table2.xlsx

(ooxml, embedded labels, table is Sheet1);

PLEASE HELP!!! THANKS IN ADVANCE!!

14 Replies
nizamsha
Specialist II
Specialist II

table1:

LOAD * Inline [

f1 ,f2, f3

a ,b ,c4

b ,b, c5

c ,b ,c6

]  ;

table2:

LOAD * Inline [

f1, f2, f3

a, a, c1

d ,b, c2

e ,c, c3

]where not exists(f1) ;

paste this one u will get what u want

tresesco
MVP
MVP


PFA

Not applicable
Author

Hello Dear,

Sorry it does not produce this table

f1f2f3
aac4
bbc5
cbc6
dbc2
ecc3
Not applicable
Author

Hello Dear,

seems like everyone is misunderstanding what I am asking for...my bad for state it clearly in the posting..

='(

I want to get this result:

f1f2f3
aac4
bbc5
cbc6
dbc2
ecc3
Not applicable
Author

I am sorry that I could not open this using my free personal edition..