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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to separate this field into 3 fields

Hi all, appreciate any help here!!

The data in the field looks like this:

"Brick Factory - John Smith - 1234"

Am hoping to split each component into its own field in the load statement using the hyphen characters as separators I guess...

Cheers J

2 Replies
arulsettu
Master III
Master III

try this

load

SubField('Brick Factory - John Smith - 1234','-',1) as company,

SubField('Brick Factory - John Smith - 1234','-',2) as name

SubField('Brick Factory - John Smith - 1234','-',3) as id

replace with your filed

avinashelite

Try like this

SubField(Field_name,'-',1) as Company,

SubField(Field_name,'-',2)  as Name


NOTE: In order to implement this logic your data inflow should be maintained in the same order