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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Extracting integer data from field

Hi,

i know it is very simple question but just want to know the syntex for it.


I want to extract integer data only from below field.

DATA
0 AU
1 IN
2 UK

output

DATA
0
1
2
1 Solution

Accepted Solutions
tresesco
MVP
MVP

try like:

Load

          KeepChar(DATA, '0123456789') as DATA

View solution in original post

6 Replies
tresesco
MVP
MVP

try like:

Load

          KeepChar(DATA, '0123456789') as DATA

Anonymous
Not applicable
Author

use left (Data,1) if you have 1 Digit numbers

Not applicable
Author

no i have two,three  digit numbers also

ecolomer
Master II
Master II

subfield(DATA,' ', 1)

ecolomer
Master II
Master II

subfield(DATA,' ', 1)

Not applicable
Author

Hi,

Use can use Subfield(DATA,' ' , 1)

or

you can also use Left function (if your country code length will always be 2 )  like this

=Left(DATA, len(DATA)-3)

Regards,

Vivek