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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is there any function in QlikView that would tell if there is a numeric value in a string?

Hi All,

Is there any function in QlikView that would tell if there is a numeric value  in a string?

Eg. 'FP00731' has a numeric value and 'APPLE' does not.

Thanks,

Neeraj

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

I don't know if a function like that exists, but instead you can use the function keepchar(value, '1234567890'), if the value is 'FP00731' the function returns 00731 so then you can use an 'IF' to validate if the was a number in the string, something like:

if(keepchar(value, '1234567890') = '', 'No numeric', 'Numeric')

Hope this helps

Regards!

View solution in original post

2 Replies
Not applicable
Author

Hi,

I don't know if a function like that exists, but instead you can use the function keepchar(value, '1234567890'), if the value is 'FP00731' the function returns 00731 so then you can use an 'IF' to validate if the was a number in the string, something like:

if(keepchar(value, '1234567890') = '', 'No numeric', 'Numeric')

Hope this helps

Regards!

Not applicable
Author

Thank you so much Gabriela !!

It is just the solution I was looking for .

Regards,

Neeraj