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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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