Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Venthan
Contributor III
Contributor III

Data separator from single column using | character

Hi,

I am trying to create a table in Qlik Sense with multiple columns.

Issue is my source data has a column with value as "part1 | part2 | part3 |".

In my table I want to have part1 in my first column, part2 in second column and part3 in third column, like the value before the first pipe character should be in first column and value between first and second pipe chacater in second column and so on.

Please advice on this, thanks.

1 Solution

Accepted Solutions
Taoufiq_Zarra

@Venthan 

One solution :

 

Source_Table:

load *,subfield(column,'|',1) as part1,subfield(column,'|',1) as part2 ,subfield(column,'|',3) as part3  inline [
column
part1 | part2 | part3 |

]

 

 

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
Taoufiq_Zarra

@Venthan 

One solution :

 

Source_Table:

load *,subfield(column,'|',1) as part1,subfield(column,'|',1) as part2 ,subfield(column,'|',3) as part3  inline [
column
part1 | part2 | part3 |

]

 

 

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Venthan
Contributor III
Contributor III
Author

Thank you. This works as expected