Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Help in the load script with right function .?

Hi All,

I have values in variable like -

3000001-77777

344444-8888888

444444

My req to get the values like below in load script -

77777

8888888

444444

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

Data:
LOAD SubField(F1, '-', SubStringCount(F1, '-')+1) as F1 INLINE [
F1
3000001-77777

344444-8888888

444444
];

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Try like below

Data:
LOAD SubField(F1, '-', SubStringCount(F1, '-')+1) as F1 INLINE [
F1
3000001-77777

344444-8888888

444444
];

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Don't forget that the 3rd parameter to subfield can be negative -- counts from right. 

SubField(F1, '-', -1) 

-Rob