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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
M1ha
Contributor
Contributor

How do I combine rows on common fields and add separate columns for differences

Hi there,

Bellow is a screenshot of a table from my app. 

M1ha_1-1680699230554.png

Is there a way to merge/combine the lines with same IDs and have the emails as separate cells like below?

M1ha_3-1680699428288.png

I tried =Aggr(CONCAT(DISTINCT [Email ],', '), [Name]) but can't find a way to split emails list field into separate columns:

M1ha_2-1680699308836.png

Thank you!

 

Labels (1)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

Hi, I believe you need to create separate columns to have values in each of them, you can create one and show only 'first' email in it with something like this:

SubField( Aggr(CONCAT(DISTINCT Email,','), Name), ',',1)

You can create second column and show only 'second' email etc.:

SubField( Aggr(CONCAT(DISTINCT Email,','), Name), ',',2)

View solution in original post

1 Reply
justISO
Specialist
Specialist

Hi, I believe you need to create separate columns to have values in each of them, you can create one and show only 'first' email in it with something like this:

SubField( Aggr(CONCAT(DISTINCT Email,','), Name), ',',1)

You can create second column and show only 'second' email etc.:

SubField( Aggr(CONCAT(DISTINCT Email,','), Name), ',',2)