Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Parsing field up to first "-"

Hi community,

I have a field made of two numbers seperated by a "-".  How would I parse it so that only the number before the dash is saved?

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use SubField()

     SubField(FieldName,'-',1)

Celambarasan

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use SubField()

     SubField(FieldName,'-',1)

Celambarasan

nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi Brandon,

use subfield function at load time.

subfield(FieldName,'-',1)  as NewField,

Now this new Field contains the  numbers before the dash.

Regards,

Nilesh Gangurde