Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

Script PRob

Hey,

I ahve id as:  ABC\gnikhil

In my script, i want Id as : gnikhil only. How to acheive this?

thanks

1 Solution

Accepted Solutions
prieper
Master II
Master II

SUBFIELD(MyField, '\', 2)

Peter

View solution in original post

3 Replies
prieper
Master II
Master II

SUBFIELD(MyField, '\', 2)

Peter

fvelascog72
Partner - Specialist
Partner - Specialist

Try:

Subfield([FIELD],'\',2)          as "FIELD"

Not applicable

Use SubField function in script

SubField(<your field>,'\',2) as <your field>

the third parameter indicates the column that interests you after the split, and the count starts at 1