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

Name display

I have a column called Name

ex:Name

    Rai,Sam

where Sam is first name and Rai is last name

so I only want to display last name.How can I do that ?

1 Solution
6 Replies
Digvijay_Singh

Use subfield if comma is the delimiter -

Subfiled(Name,',',1) as Lastname

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

You can split the field in the script

LOAD

NAME,

Subfield(NAME,','1)     AS FirstName,

Subfield(NAME,',',2)     AS LastName

,....

From Source;

Then in UI you can use LastName field as you want.

Not applicable
Author

Try Subfield(name,','1)  AS FirstName

Not applicable
Author

subfield(name,',',1) as lastname.

use it may help

Not applicable
Author

Thank you very much.