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

Concatenate data of single field

Hi All,

I have a question regarding scripting.. I do not know how to implement this one on qlikview..

I have 2 tables:

table1:

Field1Field2KEYCODE
abcabcXYZX
abcabcXYZY
abcabcXYZZ
abcabcABCDA
abcabcABCDB
abcabcABCDC
abcabcTSTT
abcabcTSTS

table2:

KEYCODE1CODE2CODE3CODE4
XYZXYZ
ABCDABCD
TSTTS

What I want to happen is, I want to create a flag telling me that the data on table1 is complete.

for example:

KEY XYZ, codes are: X,Y,Z which is present in table2 (CODE1, CODE2, CODE3)

now for KEY ABCD, only codes: A,B, and C is present which makes its flag to incomplete.

As for KEY TST, the codes T and S is both present in table which makes its flag to complete.

How can I achieve this? How can I concatenate the CODE field in table1 to match both tables?

Regards,

Lyn

10 Replies
jagannalla
Partner - Specialist III
Partner - Specialist III

Hi Lyn,

Hope it helps you

T4:

LOAD KEY,Concat(Val) as Con Resident T3 Group By KEY

;

Join

T5:

LOAD KEY,

Concat(CODE) as Con1

Resident T1

Where Exists(Val,CODE)

Group By KEY

;

Cheers!!

Jagan