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

Split values in the column

Hi All,

I am having values in the column below format

COLUMN                       Expected O/P

ABC,DFG,EEE              "ABC","DFG",'EEE'

HJK,KK,IPREL,             "HJK","KK","IPREL"

GH,IIII,OKPRLAER        "GH","IIII","OKPRLAER"

-Jay

8 Replies
sasiparupudi1
Master III
Master III

Use Subfield

Subfield  (column,',',1)

robert_mika
Master III
Master III

Is your output the same as input just with double quotes after each word?

LOAD

'"'& Replace(Column,',','","')&'"' AS oUTPUT

FROM

(ooxml, embedded labels, table is Sheet1);

Feeling Qlikngry?

How To /Missing Manual(18 articles)

Not applicable
Author

Hi,

Please find the attached QVW.

Hope it serves the purpose.

sunny_talwar

May be this:

Table:

LOAD *,

  Chr(34) & Replace(COLUMN, ',', Chr(34) & ',' & Chr(34)) & Chr(34) as NEWCOLUMN;

LOAD * Inline [

COLUMN

ABC,DFG,EEE

HJK,KK,IPREL

GH,IIII,OKPRLAER

] (delimiter is |);


Output:


Capture.PNG

Anonymous
Not applicable
Author

yeah, it should be with " "

-Jay

MayilVahanan

Hi

Try like this

Table:

LOAD *,

  '"' & Replace(COLUMN, ',', '"' & ',' & '"') & '"' as NEWCOLUMN;

LOAD * Inline [

COLUMN

ABC,DFG,EEE

HJK,KK,IPREL

GH,IIII,OKPRLAER

](delimiter is |);

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Try this one Table: LOAD *, ""& Replace(Column,',','","')&'"' AS Ouput; LOAD * Inline [ Column ABC,DFG,EEE HJK,KK,IPREL GH,IIII,OKPRLAER ] ;

qlikviewwizard
Master II
Master II

Did you get the solution?