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

How to caplialize the first letter

Hi All,

I would like to capitalize the first letter even there exists underline or blank like this

cq1_test aaa to Cq1_Test Aaa

How can I do it?

Thanks.

4 Replies
amit_saini
Master III
Master III

Isaac,

Try This:

     upper(left(trim(data),1)) & lower(mid(trim(data),2,len(data)))

where data is the field containing the text you wish to change.

Thanks,
AS

Anonymous
Not applicable
Author

Hi Isaac,

Try the function Capitalize:

capitalize(s )

Returns the string s with all words capitalized.

Example:

capitalize ('my little pony') returns 'My Little Pony'

capitalize ( 'AA bb cC Dd') returns 'Aa Bb Cc Dd'

Regards,

sujeetsingh
Master III
Master III

Upper(Left(Field,1))& Right(Field,len(Field)-1)

aveeeeeee7en
Specialist III
Specialist III

Try This Expression:

=upper(left(String,1))&mid(String,2,len(String)-9)
&
upper(left(Subfield(Left(String, index(String, ' ', 1)-1) ,'_',2),1))&mid(Subfield(Left(String, index(String, ' ', 1)-1) ,'_',2),2,len(Subfield(Left(String, index(String, ' ', 1)-1) ,'_',2))-1)&' '&upper(left(SubField(String,' ',2),1))&mid(SubField(String,' ',2),2,len(SubField(String,' ',2))-1)

Kindly, replace String with your FieldName.

Also, see the Attachment.

Hope that helps.

Regards

Aviral Nag