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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Replace only first space to a underscore in expression

Hi,

Replace only first space to a underscore in expression

this is urgent please reply

11 Replies
Anonymous
Not applicable
Author

=left('ab cd ef gh',index('ab cd ef gh', ' ',3)-1)

& '_'

& mid('ab cd ef gh',index('ab cd ef gh', ' ',3)+1)

It should work with any - just replace this '3' with 1 or 2 and try

Not applicable
Author

thanks