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: 
Anonymous
Not applicable

Convert Comma Separated column value to rows

Hello,


I have a table Sample with data stored like below in excel spreadsheet. 

Capture.PNG

I need to process the data and store it in the QVD file for further calculations.  Appreciate any inputs.

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

Try using subfield function here:

LOAD Id,

          SubField(String, ',') as processedrows

FROM Source;

Anil_Babu_Samineni
MVP
MVP

Try


Subfield(processdrow,',',chr(10))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar
MVP
MVP

Check out the sample

Table:

LOAD Id,

  SubField(String, ',') as processedrows;

LOAD * INLINE [

    Id, String

    1, "abc,def,ghi"

    2, "jkl,mno,pqr"

];


Capture.PNG