Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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