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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ashishpalkar
Creator III
Creator III

Group muple rows in single row

Hi There

I have a below requirement, in current dashboard Data is displayed as shown below. 

Current Output        

IDABCDEFRegion
708Tjiachris,James
708 Nadeau,Brian Paul
708 Kroll,Adam Benjamin N AMERICA
708 Huttenlocher,Richard Howard N AMERICA
708 Huttenlocher,Richard Howard N AMERICA
708 Chew,Pei ChinAPAC
708 Foo,Shih Wei MarkAPAC
708 Gupta,AnshumaanAPAC
708 Ikeshima,ToshihiroAPAC
708 Julienne,LionelEMEA
708 Kang,RebeccaAPAC
708 Kruapong,KamontornAPAC
708 Nguyen,Truc LinhAPAC
708 Sakti,Yogi BimaAPAC
708 Uy,Jennifer Claire CabreraAPAC
708 Wang,Wen BoAPAC
708 N AMERICA

We are looking to group Id's (column A) and show it on single row like below.

         Expected Output

IDABCDEFRegion
708Tjiachris,James
708 Nadeau,Brian Paul
708 Kroll,Adam Benjamin N AMERICA
708 Huttenlocher,Richard Howard N AMERICA
708 Huttenlocher,Richard Howard N AMERICA
708N AMERICA
708 Chew,Pei Chin, Foo,Shih Wei Mark, Gupta,Anshumaan, Ikeshima,Toshihiro, Kang,Rebecca, Kruapong,Kamontorn, Nguyen,Truc Linh, Sakti,Yogi Bima, Uy,Jennifer Claire Cabrera, Wang,Wen BoAPAC
708 Julienne,LionelEMEA

Many Thanks,

10 Replies
MarcoWedel

Hi,

another possible solution could be:

QlikCommunity_Thread_168183_Pic3.JPG

table1:

CrossTable (IDGroup, Name, 2)

LOAD ID,

    Region,

    A,

    B,

    C,

    D,

    E,

    F

FROM [https://community.qlik.com/thread/168183] (html, codepage is 1252, embedded labels, table is @1)

Where Len(ID);

Right Join (table1)

LOAD Distinct Name Resident table1 Where Len(Name);

Left Join (table1)

LOAD Distinct

    ID,

    Region,

    IDGroup,

    Name,

    AutoNumber(RowNo(),ID&'/'&Region&'/'&IDGroup) as NameNo

Resident table1;

hope this helps

regards

Marco