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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to get these in script level...pls hep me....

hi all,

id            variable

001         13kh1d4567

002          13gh4t5467

003          12rt4s5678

001          65759

002           5674

003          7484

in script level I want to display the result like

id              variable

001          13kh1d4567,65759

002           13gh4t5467,5674

003           12rt4s5678,7484

Thanks,

kumar

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

One more,

Load id,Concat(variable,',') as variale Group by id;

LOAD * INLINE [

    id, variable

    001, 13kh1d4567

    002, 13gh4t5467

    003, 12rt4s5678

    001, 65759

    002, 5674

    003, 7484

];

Capture.JPG

View solution in original post

4 Replies
cwolf
Creator III
Creator III

Load

id,

concat(variable,',')

resident table_name

group by id;

settu_periasamy
Master III
Master III

One more,

Load id,Concat(variable,',') as variale Group by id;

LOAD * INLINE [

    id, variable

    001, 13kh1d4567

    002, 13gh4t5467

    003, 12rt4s5678

    001, 65759

    002, 5674

    003, 7484

];

Capture.JPG

jagan
Partner - Champion III
Partner - Champion III

Hi Kumar,

Try this using Group By and Concat() like below

Temp:

LOAD

*

FROM DataSource;

QVTableName:

NoConcatenate

Load

id,

Concat(variable, ',') AS variable

RESIDENT Temp

Group By id;

DROP TABLE Temp;

Hope this helps you.

Regards,

jagan.

Not applicable
Author

Thank you all....