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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple rows to single row

Hi,

i have callno and partno and many other fields also which i have loaded in straight table. for a single call no we have multiple partnos which i want to load in a single column and row with inserting a separator how can this be done?

sample:

callno - 2349

partnos-

XXX

rtgh

UUUU

result i want it as :

callno      |   partnos

2349       |    XXX, rtgh, UUUU

Regards,

Grace

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Load callno, concat(partnos,',') as Allpartnos from tablename

group by callno;

since u've other fields also, u need to group by those fields also

or u can only use this part in a separate load and link to the main table.

depends on which cols u need in ur stght table

View solution in original post

4 Replies
Not applicable
Author

Load callno, concat(partnos,',') as Allpartnos from tablename

group by callno;

since u've other fields also, u need to group by those fields also

or u can only use this part in a separate load and link to the main table.

depends on which cols u need in ur stght table

Not applicable
Author

Thanks, how to do vice versa...

partno

XXX, rtgh, UUUU

i want to load one below the other...

Not applicable
Author

what do u mean by one below the other, aren't they already one below the other ?

nagaiank
Specialist III
Specialist III

Use SubField() as shown below:

LOAD SubField(partno,',') as IndividualPartNo

from/resident whatever...