Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
narband2778
Creator II
Creator II

Swap two strings separated by delimiter

Hi guys,

I have a Field (Full Name).

All the names in that field are (first name, last name).

My requirement is to swap first and last name. For ex (John, Bell) to (Bell, John).

How to do it?

Waiting for your replays.

Thanks In Advance,

Naresh

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

For example

     Subfield(Name,',',2) & ' ' & Subfield(Name,',',1) as Name

HIC

View solution in original post

2 Replies
hic
Former Employee
Former Employee

For example

     Subfield(Name,',',2) & ' ' & Subfield(Name,',',1) as Name

HIC

rustyfishbones
Master II
Master II

try

SUBFIELD([Full Name],',',-1)& ' ' & SUBFIELD([Full Name],',',1)  AS Name