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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Concat field Values

Hi All,

I am having columns F1  in T1 and F2 in T2. The F1 will have the unique values and F2 will have more than one values for same F1 value.

T1:

[F1

1

2

3

4

5

]

T2:

[F1,F2

1,AA

1,BB

2,C

3,DD

3,EE

]

Expected O/P

[1,AA,BB

2,C

3,DD,EE]

.

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

T2:

Load * inline [

F1,F2

1,AA

1,BB

2,C

3,DD

3,EE

];

output:

Load F1,Concat(F2,',') as NewFIeld

Resident T2 Group by F1;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Both are two different table and in my dashboard the data model is different. For your clarity I have used it.

Actually it is Pivot table,there I need to CONCAT the values against each F1 value

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Then you can use the

Concat(F2,',') as expression in pivot table.

If this doesnt work please share the sample data showing your issue.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Kushal_Chawda

if you have F1 as Dimension in Pivot table, you can simply write expression as Concat(F2,',')

sasiparupudi1
Master III
Master III

Try like this

T1:

load * Inline

[

F1

1

2

3

4

5

];

left join(T1)

T2:

LOAD F1,Concat(F2,',') as F2

group by F1;

load * Inline

[

F1,F2

1,AA

1,BB

2,C

3,DD

3,EE

];

NoConcatenate

final:

LOAD F1,F2 Resident T1 where IsNull(F2)=0;

drop Table T1;

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Dimension : F1

Expression: Concat(F2,',')

Hope this helps you.

Regards,

Jagan.