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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Mizo
Contributor II
Contributor II

Merge rows by order

Hello,

I have a table that contains more data "Value".  However, the data belongs to one ID

I would like to merge the data and display it according to the order

my Table:

IDRecordNumberValue
ID_12xxx
ID_11yyy
ID_13zzz
ID_21AAA
ID_22BBB
ID_33CCC
ID_32DDD
ID_34EEE
ID_31FFF
ID_41GGG

 

The Result should by like:

IDValue
ID_1YYY
XXX
ZZZ
ID_2AAA
BBB
ID_3FFF
DDD
CCC
EEE
ID_4GGG

 

Can someone please help me for this?

 

Best regards,

Mizo

Labels (1)
1 Solution

Accepted Solutions
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, to Sort the dimensions after concat use below expression.

 

Aggr(Concat(DISTINCT Value, chr(10),RecordNumber),ID)

AshutoshBhumkar_0-1631900315280.png

 

 

View solution in original post

6 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, I dont think merging of cells is possible in Straight table in Qlik sense.

You can use Pivot table instead.

Mizo
Contributor II
Contributor II
Author

Thanks for your replay

it works with following code:

Aggr(Concat(DISTINCT Value, ', '),ID)

But I don't know how to sort them by RecordNumber so that the data is displayed in the correct order

PrashantSangle

Try below

Aggr(Concat(DISTINCT Value, chr(10)),ID)

 

Regards,

Prashant Sangle

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Yes, Merging is not possible but you can concat the values of dimension

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, to Sort the dimensions after concat use below expression.

 

Aggr(Concat(DISTINCT Value, chr(10),RecordNumber),ID)

AshutoshBhumkar_0-1631900315280.png

 

 

Mizo
Contributor II
Contributor II
Author

Dear AshutoshBhumkar,

 

Thanks a lot for your help. It works 🙂