Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Merge two row of a table in Qlik sense

Hi,

I need to merge some cells from differents rows from a table, is it possible?

My data looks something like the below :

NameFirstnameCodeValid
Name 1Firstname1Code1yes
Name 1Firstname1Code2yes

and i want as a result

NameFirstnameCodeValid
Name 1Firstname1Code1, Code2yes

I was thinking about using the "concat" function, but it seems it wrong the dimension...

is there any way to do this with many lines?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

In the Dimension, you can try this

Aggr(Concat(DISTINCT Code,  ', '), Name)

View solution in original post

4 Replies
sunny_talwar

Concat is the right way to go...

LOAD Name,

     Firstname,

     Concat (Code, ', ') as Code,

     Valid

FROM ....

Group By Name, Firstname, Valid;

sunny_talwar

In the Dimension, you can try this

Aggr(Concat(DISTINCT Code,  ', '), Name)

Not applicable
Author

This one actually worked the way I wanted to ! Thanks

Amit
Contributor III
Contributor III

Thank you @sunny_talwar great answer! Helped me out. Cheers.