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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
124rooski
Partner - Creator
Partner - Creator

substring in qlik sense

I'm having a hard time parsing out the values from a column in qlik.

Capture.PNG

 

In the end, I want my values to be: Phoenix, Turkey, NYC, London, Israel, and Buenos Aires. Issue is I can do a substring for where there is a ' ' (space) but that doesn't help out Buenos Aires since that is a legitimate city with a space in the value. Left and Right functions hasn't been helpful. Am I overthinking this? Thanks.

Labels (1)
3 Replies
124rooski
Partner - Creator
Partner - Creator
Author

Solution:

=Replace([Training Center],'BA',  '')

dplr-rn
Partner - Master III
Partner - Master III

may need full data set to identify any pattern.

from your limited set if i take a pattern as 'BA ' at the start. use replace function

replace(columnname,'BA ', '') as column name

124rooski
Partner - Creator
Partner - Creator
Author

Awesome, didn't see your post as our posts were 1 minute away but we both came to the same solution!