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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Removing spaces between a string.

Hi There,

I am trying to remove spaces between the below string . Can anyone help me how should i do it?

I tried the trim functions and the same does not work

Origional data :    CGB0 024425

Exoected result:   CGB0024425

Thanks for your help in advance

Regards,

Viral

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can try replace too: replace(MyField, ' ','')

But purgechar works fine for me. For example =PurgeChar('CGB0 024425',' ') returns CGB0024425.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Nicole-Smith
MVP
MVP

purgechar([Your Field], ' ')

Not applicable
Author

Hi Nicole,

I tried purgechar , but it does not work

Thx

Viral

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can try replace too: replace(MyField, ' ','')

But purgechar works fine for me. For example =PurgeChar('CGB0 024425',' ') returns CGB0024425.


talk is cheap, supply exceeds demand
Nicole-Smith
MVP
MVP

Can you post a .qvw?  There is no reason why it shouldn't work...

Not applicable
Author

Thanks This works 🙂