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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Key Logic

Dear All,

Please tell me how to make Key between 2 tables having data as::

Table A:

Header 1Header 2Header 3
aa01200
bb01300
cc06300
dd08200

Table B:

Header 1Header 2Header 3
aa06800
bb, aa01300
cc, dd02700
dd08900

I have to make Key between Table A and Table B with Header 1 column...Plz show me the right way to do that...

4 Replies
Not applicable
Author

hi

TableA:

load

* from TableA;

TableB:

load

subfield(Header1,',') as key

Header2 ,

Header3

from TableB;

vikasmahajan

PFA sample application Hope this will definitely help you.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
datanibbler
Champion
Champion

Hi Rahul,

that depends on which record from table_B you want to get joined/ linked to which record in table_A.

Generally, you can split the strings (pieces of text) in that header_field by using either of the string functions

- LEFT()

- RIGHT

- SPLITFIELD() (might be best if you know that your separator is always a ',')

=> Load the result as a new field which has to have the same name as the field_to_link_to in the other table - QlikView automatically links fields that have the same name.

HTH

Best regards,

DataNibbler

er_mohit
Master II
Master II

Table1:

load [Header 1] as Key,[Header 2], [Header 3] from table1;

Table2:

load

subfield(Header,',') as Key,

[Header 2],[Header 3] from table 2;