Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nicouek
Creator
Creator

String Value Formating

Hello All,

I would like to ask if you could help me with this problem. Thank you.

My field [name] shows value as: 'FIRSTN LASTN' --> 'JOHN DO'

Is there a way to for me to transform all the values in the field to show a 'COMMA' (,) between FIRSTN and LASTN

=FIRSTN, LASTN (JOHN, DO)

Thank you.

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Perhaps?

SubField( [name], ' ', 1) & ', ' & SubField( [name], ' ', 2) as FullName;

or

=SubField( [name], ' ', 1) & ', ' & SubField( [name], ' ', 2)

View solution in original post

2 Replies
BrunPierre
Partner - Master II
Partner - Master II

Perhaps?

SubField( [name], ' ', 1) & ', ' & SubField( [name], ' ', 2) as FullName;

or

=SubField( [name], ' ', 1) & ', ' & SubField( [name], ' ', 2)

nicouek
Creator
Creator
Author

Dear BrunPierre,

Never mind! your solution is on point (CORRECT), had to put SPACE between the SINGLE QUOTES ('' vs ' ')

=SubField( [name], '  ', 1) & ', ' & SubField( [name], '  ', 2

nicouek_0-1690498991909.png

It works!!!

Thank you