Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
balanandam
Creator II
Creator II

Convert Column to Rows

Hi All,

I have one requirement as below. I have sample data like

IMEI, contentype

1236548989,Message

1236548989,Audio

1236548989,Images

1236548987,Message

1236548987,Vedio

I need this to be converted as

IMEI, contentype

1236548989,Message,Audio,Images

1236548987,Message,Vedio

Pls. suggest.

Br, Balanandam

2 Replies
rubenmarin

Hi, this can be done  with Concat(), inscript needs a Group By clause:

LOAD

  IMEI,

  Concat(contentype, ',') as contentype

Resident/from...

Group by IMEI;


Edit: and maybe Concat(distinct contentype, ',') if you want to avoid repeated values.

jwjackso
Specialist III
Specialist III

Check this article on a generic load (reverse crosstable)  https://qlikies.wordpress.com/2016/02/22/the-generic-load/