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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Subfield() help

Hi Experts,

Can any one please help me in below requirement.

In ID field I have the records like below.

ID                                                                                  Output ID

75963865                                                                      75963865 

987596386                                                                    987596386

789456123_04586_Transfer_Time                               789456123

789456123_0WR_Transfer_Time                             



From the above id I have to remove the data after  '_ ' need to get the Output ID.


Please help me on this.


Thanks in advance

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try this

subfield(ID, '_' ,1)    as New

View solution in original post

2 Replies
Chanty4u
MVP
MVP

load*

,

keepchar(ID,'0123456789')  as NewID;

load * inline[

ID

.....

.......

];

Chanty4u
MVP
MVP

try this

subfield(ID, '_' ,1)    as New