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: 
HWallays
Contributor III
Contributor III

Keep numeric from a character string with mixed char and numeric content

Is there any formula or other way to isolate the numeric value from a tekst string that holds both numeric and char data ?

For instance

 

' AMEX_123456' shoudl deliver 123456

'MONEYMARKET:456222 TODAY' should deliver 456222

 

In the same field the numbers can occur on various positions in the string , so I can not substract with left and right functions.

Do we have seomthing like a KEEPNUMERIC function ?

Labels (2)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

You have KeepChar(). Try like:

KeepChar('YourString', '0123456789')

View solution in original post

2 Replies
tresB
Champion III
Champion III

You have KeepChar(). Try like:

KeepChar('YourString', '0123456789')

HWallays
Contributor III
Contributor III
Author

Didn't think about that one , will try (and convert the oucome to number) …. thanks seem fine.