Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Split the Numbers from String value

Hi Team,

I have data set like as below, I want to exclude the First position of my "Actual Value" if it is Character and store the remaining Numbers in a another Column(Output Value).

Actual Value

Output Value

A123487978

123487978

A124750067

124750067

A124750067

124750067

H041348923

041348923

H041348923

041348923

R041348923

041348923

A41350698

41350698

A41350698

41350698

Z041350698

041350698

R041348923

041348923

H015599554

015599554

H015599554

015599554

A123487978

123487978

Z041350698

041350698

Can any 1 suggest me the solution for that.

Regards,

Shakila D

1 Solution

Accepted Solutions
sunny_talwar

Sample attached

Table:

LOAD RowNo() as RowNum,

*,

Text(Mid(ActualValue, 2)) as OutputValue;

LOAD * INLINE [

    ActualValue

    A123487978

    A124750067

    A124750067

    H041348923

    H041348923

    R041348923

    A41350698

    A41350698

    Z041350698

    R041348923

    H015599554

    H015599554

    A123487978

    Z041350698

];

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

May be this

Text(Mid(ActualValue, 2)) as OutputValue

sunny_talwar

Sample attached

Table:

LOAD RowNo() as RowNum,

*,

Text(Mid(ActualValue, 2)) as OutputValue;

LOAD * INLINE [

    ActualValue

    A123487978

    A124750067

    A124750067

    H041348923

    H041348923

    R041348923

    A41350698

    A41350698

    Z041350698

    R041348923

    H015599554

    H015599554

    A123487978

    Z041350698

];

Capture.PNG

Anonymous
Not applicable
Author

Thank you. It's working.

devarasu07
Master II
Master II

Hi,

try like this

Data:

load *,Left(Right(ActualValue,Len(ActualValue)-1),Len(ActualValue)-2) as Revised;

LOAD * INLINE [

    ActualValue

    A123487978

    A124750067

    A124750067

    H041348923

    H041348923

    R041348923

    A41350698

    A41350698

    Z041350698

    R041348923

    H015599554

    H015599554

    A123487978

    Z041350698

];

Capture.JPG