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: 
renuka_sasikumar
Creator III
Creator III

Subfield

Name
Parvinder Kaur
John P Gonsalve
Ritesh Gupta
Anita G Rodrigues
Deepali R Jahav
Rupesh J Sonawane
Fatima C Fernandes
Sunil S Singh
Rohit J Gupta

How do I remove the middle name and display the First Name n Last Name.

18 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Make sure you mark a correct answer to close the thread.

Not applicable

hi

try according to

Sir

subfield(Name, ' ' ,1) & ' ' & subfield(Name, ' ' ,-1) As Name


Regards

Not applicable

I always refresh before replying to a post - so that I know that nobody before me has given a better answer . I think the QlikView team should include / improve AJAX for this forum as well so that things get updated live.

MK_QSL
MVP
MVP

This is because sometimes members are replying to selecting reply of some other members rather than selecting the original post.

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Still not sure why those responses didn't show either before or after I posted a reply. After refreshing my response was third on the list. Anyway - as I say - not a big deal. As long as a helpful answer is received!!

Not applicable

How about this? It works for the names without a middle name as well.

if(len(SubField(GetFieldSelections(Name),' ',2))=1, Replace(GetFieldSelections(Name),' ' & SubField(GetFieldSelections(Name),' ',2) &' ',' '), GetFieldSelections(Name))

renuka_sasikumar
Creator III
Creator III
Author

I m new to qlikview n i think this is too confusing

sunilkumarqv
Specialist II
Specialist II

Like these

Please find the attached file you may see desired result

renuka_sasikumar
Creator III
Creator III
Author

this is also working

Thank u