
Contributor III
2019-04-12
10:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove blank spaces between a string
Hello Community
if i have too much space between 2 String like that 'new quest'
and i want to get this result 'new quest' with one space between new and quest.
How can I do that ?
i Did this : SubField('new quest',' ',1)& ' ' &SubField('new quest',' ',2) but it works only with one space between the two words
Thank you Again
1,063 Views
4 Replies


Master II
2019-04-12
10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like this:
Left(index(String,' ')-1) & ' ' & mid(index(String,' ',-1)+1)
1,052 Views

MVP
2019-04-12
10:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This will work
= SubField('new quest',' ',1)& ' ' &SubField('new quest',' ',-1)
Vegar
Qlik Community MVP
Qlik Community MVP

Contributor III
2019-04-12
11:09 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Vegar
thank you for ur answer it works like magic but what if i had 3 words
cause in the application which i'm working on .; i shoud delete all blank spaces between the words and i could have 3 or 4 word in one String 😕
(Sorry abt my english)
Thank you again
1,044 Views

MVP
2019-04-12
11:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have not verified it, but this might do the trick
Concat( trim(subfield( Field, ' ')), ' ')
BR
Vegar
Concat( trim(subfield( Field, ' ')), ' ')
BR
Vegar
Vegar
Qlik Community MVP
Qlik Community MVP
1,040 Views
