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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gino2780
Creator
Creator

keepchar and left load

Hello,

for my data load i need script commands that loads a field in a certain format.

E.g.: Field A has strings in the format shown below (A). I'd like to get rid of the strings like "-" & "/" and cut the data on 9 numeric digits (New A).

A

00-000-0000/1

11-111-1111/2

22-222-2222/3

New A

000000000

111111111

222222222

Thanks in advance.

1 Solution

Accepted Solutions
sunny_talwar

May be Like this:

LOAD A,

          Left(KeepChar(A, '0123456789'), 9) as [New A]

View solution in original post

2 Replies
sunny_talwar

May be Like this:

LOAD A,

          Left(KeepChar(A, '0123456789'), 9) as [New A]

gino2780
Creator
Creator
Author

That's it. Thanks again!