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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Substring / Parsing Help

I have several antibiotic drug names in one column. Each drug name varies in length, but all have a space between the drug name, dosage concentration, dosage unit of measure, etc…

I want to parse everything from the first character (from the left) to the first space and store in a separate field.

Given:      Imipenem-Cilastatin 500 mg IV solution

Desired output:        Imipenem-Cilastatin

I got close using the Subfield function, but not quite what I need

Subfield(Antibiotic,’ ‘) as Taxonomy

Any suggestions?

1 Solution

Accepted Solutions
iktrayanov
Creator III
Creator III

Try

Subfield(Antibiotic,’ ‘,1) as Taxonomy

View solution in original post

3 Replies
Nicole-Smith

Subfield(Antibiotic,' ', 1) as Taxonomy

MayilVahanan

Hi

Try like this

Subfield(Trim(Antibiotic),' ', 1) As Taxonomy

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
iktrayanov
Creator III
Creator III

Try

Subfield(Antibiotic,’ ‘,1) as Taxonomy