
Contributor II
2019-11-14
09:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to take first and last element when we split string
Hello , im new to this qliksense , i want to ask is it possible to take the first and last element from string ?
if C# we can do like string.Split('delimiter').First() / string.Split('delimiter').Last()
how about in qliksense?
example data:
Full name
1. Andy Robertson Jason Expected Result : First : Andy, Last : Jason
2. Bernard Andy Robertson Jason Expected Result : First : Bernard , Last : Jason
4,194 Views
1 Solution
Accepted Solutions
2019-11-14
09:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Qlik, We can write like
SubField(FullName, ' ', 1) as FirstName
SubField(FullName, ' ', -1) as LastName
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
2 Replies
2019-11-14
09:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Qlik, We can write like
SubField(FullName, ' ', 1) as FirstName
SubField(FullName, ' ', -1) as LastName
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

Contributor II
2019-11-14
10:45 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thankyou ! it works
