Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to join or mapping?

Table1

idname
1A
2B
3C
4D

Table 2:

idvalue
110
311

Table 3:

namevalue
B20
D22

how to load three tables into one table?

here is my code

Table1:

LOAD * INLINE [

    id, name

    1, A

    2, B,

    3, C

    4, D

];

NoConcatenate

Table2:

LOAD * INLINE [

    id, value

    1, 10   

    3, 11

];

NoConcatenate

Table3:

LOAD * INLINE [

    name, value

    B, 20

    D, 22

];

map1:

mapping LOAD id,

value

Resident Table2;

map2:

mapping LOAD name,

val

Resident Table3;

Data:

LOAD ids,

name,

alt(ApplyMap('map2',name,Null()),ApplyMap('map1',id,Null())) as value

Resident Table1;

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Looks about right, with a couple of comments:

1. The keywords NoConcatenate appear to be out of place, and they are not needed here.

2. At the end of the script, drop your raw tables 1, 2, 3.

3. In the last load statement, you misspelled the field id.

the rest should work just fine.

Cheers,

Oleg Troyansky

Upgrade your Qlik skills with my book QlikView Your Business: An Expert Guide to Business Discovery with QlikView and Qlik Sense

View solution in original post

1 Reply
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Looks about right, with a couple of comments:

1. The keywords NoConcatenate appear to be out of place, and they are not needed here.

2. At the end of the script, drop your raw tables 1, 2, 3.

3. In the last load statement, you misspelled the field id.

the rest should work just fine.

Cheers,

Oleg Troyansky

Upgrade your Qlik skills with my book QlikView Your Business: An Expert Guide to Business Discovery with QlikView and Qlik Sense