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

Extracting Names

Hello all,

I am getting name value in a single column as "LastName,FirstName MiddleName".

 

I want to extract all three names separately and load into three different columns using TMap.

 

Different cases are

FULLNAMES

FirstName

MiddleName

LastName

last,first middle

first

middle

last

last1 last2,first middle

first

middle

last1 last2

last,first

first

NULL

last

singleword

singleword

NULL

NULL

last,first middle extra

first

middle extra

last

 

Please Help.

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Solution will be
tFileInputDelimited --> tmap --> tlogrow

Within tmap you can create three extra port in output side for 1st name, middle name and last name using java's substring and indexOf method.

Accept solution if it works