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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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
Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

try like:

Load

          KeepChar(DATA, '0123456789') as DATA

View solution in original post

6 Replies
tresB
Champion III
Champion III

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