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

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

1 Solution

Accepted Solutions
Gysbert_Wassenaar

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

purgechar([Your Field], ' ')

Not applicable
Author

Hi Nicole,

I tried purgechar , but it does not work

Thx

Viral

Gysbert_Wassenaar

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

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

Not applicable
Author

Thanks This works 🙂