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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

left join

Hello Dear Programmers

I have to table like bellow

Untitled.png

I want join FastHelper field with typeId but in fastHelper data entered like this(red oval) and seprate with "|" but in typeId the numbers are seprate each others.

So i will appreciate if anyone knows how can i join these two tables?

1 Solution

Accepted Solutions
marcus_sommer

You could split your field fastHelper before with: subfield(fastHelper, '|') which caused a loop within the load for each delimited number and afterwards you could join your tables.

- Marcus

View solution in original post

4 Replies
marcus_sommer

You could split your field fastHelper before with: subfield(fastHelper, '|') which caused a loop within the load for each delimited number and afterwards you could join your tables.

- Marcus

Colin-Albert
Partner - Champion
Partner - Champion

Consider using a mapping table and Applymap rather than a join.  Don't join - use Applymap instead

This will also need the use of Subfield as Marcus_Sommer suggests.

maxgro
MVP
MVP

small example

dt:

Mapping LOAD * inline [

1, x

6750, aaa

6737, bbb

6000, ccc

6721, ddd

6747, eee

6731, fff

6730, ggg

];

fh:

load Id, FastHelper, ApplyMap('dt', NewFastHelper) as NewFastHelper;

load Id, FastHelper, SubField(FastHelper, '|') as NewFastHelper;

load * inline [

Id, FastHelper

1, 6750|6737|6000

2, 6721

3, 6747

4, 6731|6730

];

Anonymous
Not applicable
Author

Thanks a lot. it worked