Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.