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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
darren_dixon
Contributor III
Contributor III

Separate Values

Hi,

I have a field which contains one or more names and was wondering how I could separate them.

My list box looks like this:

Field: mrASSIGNEES

Andrew

Andrew Ian

Andrew Jon Ian Gary

I'd like my list box to look like this:

Andrew

Gary

Ian

Jon


Thanks,

Darren

1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try SubField() function like:

Subfield(mrASSIGNEES, ' ')

Update: PFA

View solution in original post

2 Replies
tresB
Champion III
Champion III

Try SubField() function like:

Subfield(mrASSIGNEES, ' ')

Update: PFA

dmohanty
Partner - Specialist
Partner - Specialist

Hi,

Tresco's solution is very simple and good.

To understand the functionality of Subfield and other functions, you can use this code as well. This wont have the repetive values in the new field.

 

Name:

load * Inline
[

Name
Andrew
Andrew Ian
Andrew Jon Ian Gary

]
;

Name1:
load
*,
SubField(Name, ' ',1) as N1,
SubField(Name, ' ',2) as N2,
SubField(Name, ' ',4) as N3

Resident Name;

drop Table Name;


Newname:

load
N1 as NewName Resident Name1;

Concatenate (Newname)

load
N2 as NewName Resident Name1;

Concatenate (Newname)

load
N3 as NewName Resident Name1;

Regards!!!