Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Substring

Need to pull text from a text filed in specific position. For Example, I would like to select the first position from field 1 where the text in the filed is 10 positions and it's content look like: ABBPTZZZZZ

I only want to select the "A"

Thanx

3 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

You can use left(FieldName, 1) and load it as new field name.

Not applicable
Author

Thank you for the quick reply. It almost answers my issue. What is the syntax to substring out other positions not just the first, for Example if I want to select the fifth position?

Miguel_Angel_Baeyens

Hello,

Mid() will do:

Mid('ABCDEF', 2, 3) // "BCD" starting on 2, 3 chars.


Hope that helps.