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
marcus_sommer

Try as expression something like: concat(YourValue, chr(10))

- Marcus

MarcoWedel

Hi,

one solution using a pivot table, ID, IDGroup an Region as dimensions and some similar expression to the one, Marcus already proposed:

QlikCommunity_Thread_168183_Pic1.JPG

QlikCommunity_Thread_168183_Pic2.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

LOAD Distinct Name Resident table1 Where Len(Name);

hope this helps

regards

Marco

ashishpalkar
Creator III
Creator III
Author

Thanks Its working using Concat()..

One thing i observed , i can see data in one single row. Is there any way to wrap text like excel?

-SW-
Partner - Creator II
Partner - Creator II

Hi Ashish,

Have you tried using the Wrap cell text function within

     Chart Properties, Presentation, Wrap Cell Text (checkbox) ?

ashishpalkar
Creator III
Creator III
Author

Hi Shun

Yes I have tried using Wrap Cell Text, it will wrap all rows and when data varies the exceeding characters wont show. 

marcus_sommer

What do you mean with wrap text like in excel? Could you post a screenshot.

- Marcus

ashishpalkar
Creator III
Creator III
Author

Hi Marcus

Please find example below, all grouped rows showing as wrap text, other rows showing as it is without any change.

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,Lionel
marcus_sommer

Ok. I understand but unfortunately there is no possibility to have flexible column-widths or row-heights - you need to set them fix, unless you used an extension. I have no idea if there is one pivot-extension available which you could customize.

- Marcus

ashishpalkar
Creator III
Creator III
Author

Thanks Marcus for updates.