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: 
Beginer
Contributor
Contributor

How to remove string character

Customer09

how to remove string characters while linking one sheet data to another

($##%$)Customer09

eg:- PurgeChar("Customer Name", '(&$#^*%)') as "Customer Name"    {its not working}

Labels (1)
5 Replies
Clever_Anjos
Employee
Employee

By "not working" you mean that any character is already at the string? any specific one?

BrunPierre
Partner - Master
Partner - Master

Hi, in your example the output string value is Customer09.

Perhaps you wish to remove the special characters and numbers from the string to get Customer

Then try this

KeepChar("Customer Name", 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')

Beginer
Contributor
Contributor
Author

yes there is bcz its not getting linked

Clever_Anjos
Employee
Employee

Maybe instead of purging to keep only the chars you are insterested in?

Like KeepChar("Customer Name",'ABCDEFGHIJKLM... ?

NadiaB
Support
Support

Hi @Beginer 

Could it be possible provide more details about what is being linked ? Could you provide an example or details of what is being implemented, probably step by steps to reproduce, a screenshot or a sample code? 

If you do  PurgeChar('($##%$)Customer09','(&$#^*%)')  you will get Customer09 as result. So it was not clear to me what is not working and what are you trying to accomplish, probably providing more details about my question above will help to clarify things. 

Hope it helps. 

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm