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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Merging 2 fields from 2 separate tables

Hi

I have field called say, "Item Serial Number" in Table A and I have another field called , say " Component Serial Number" in Table B.

I want to create combine the two fields and rename it as "Serial Number".

How do I do this.

kind regards

Nayan

Labels (1)
1 Solution

Accepted Solutions
robert_mika
MVP
MVP

TableA:

load * inline

[ Item Serial Number

100

200

]

;

join

TableB:

load * inline

[Component Serial Number

AA

BB

];

temp:

load [Item Serial Number] &[Component Serial Number] as IS resident TableA;

drop table TableA

View solution in original post

4 Replies
robert_mika
MVP
MVP

TableA:

load * inline

[ Item Serial Number

100

200

]

;

join

TableB:

load * inline

[Component Serial Number

AA

BB

];

temp:

load [Item Serial Number] &[Component Serial Number] as IS resident TableA;

drop table TableA

sunny_talwar
MVP
MVP

Not sure, but is this what you want?

where first two serial numbers are from Table A and the last two are from Table B

[Table A]:

load * inline

[Item Serial Number

123abc

4561bc

]

;

[Table B]:

load * inline

[Component Serial Number

kl123

jk453

];

[Combined Serial Number]:

NoConcatenate

LOAD [Item Serial Number] as [Serial Number]

Resident [Table A];

Concatenate ([Combined Serial Number])

LOAD [Component Serial Number] as [Serial Number]

Resident [Table B];

DROP Tables [Table A], [Table B];

Best,

S

Not applicable
Author

Hi Robert

Thank you for your reply

kind regards

Nayan

robert_mika
MVP
MVP

You are welcome.

Thanks for feedback