Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Use Subfield
Subfield (column,',',1)
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?
Hi,
Please find the attached QVW.
Hope it serves the purpose.
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:
yeah, it should be with " "
-Jay
Hi
Try like this
Table:
LOAD *,
'"' & Replace(COLUMN, ',', '"' & ',' & '"') & '"' as NEWCOLUMN;
LOAD * Inline [
COLUMN
ABC,DFG,EEE
HJK,KK,IPREL
GH,IIII,OKPRLAER
](delimiter is |);
Try this one Table: LOAD *, ""& Replace(Column,',','","')&'"' AS Ouput; LOAD * Inline [ Column ABC,DFG,EEE HJK,KK,IPREL GH,IIII,OKPRLAER ] ;
Did you get the solution?