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 text from string

Hi,

I have a Total Amount field in my db which contains values such as the following:

  •      £1,500
  •      n/a
  •      582
  •      £400

How can I get rid of all characters which are not numeric. Basically im aiming to change to the values to:

  •     1500
  •     
  •      582
  •      400

I know I can use the replace function but is there a formula which completely gets rid of all non-numeric data?

Thanks

1 Solution

Accepted Solutions
MayilVahanan

HI

Use KeepChar(FieldName,1234567890)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI

Use KeepChar(FieldName,1234567890)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
swuehl
MVP
MVP

Try

keepchar(FIELD, '0123456789') as NEWFIELD

in your load or equivalent in an expression.