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: 
ronaldovuiv
Contributor II
Contributor II

Separate text to columns, delimited by commas

Hi all,

I have field that gives location as such 1234 Unnamed Road, Orlando, FL 12345, USA. All I want is the Orlando, FL part of the location however. Any way to only get City, State in either the load script or text object?

Thanks in advance/

4 Replies
m_woolf
Master II
Master II

Subfield(YourField,',',2) as City,

Subfield(YourField,',',3) as State,

sunny_talwar

May be this

SubField(Location, ', ', -3) as City,

SubField(SubField(Location, ', ', -2), ' ', 1) as State

sunny_talwar

Sample attached

Capture.PNG

ronaldovuiv
Contributor II
Contributor II
Author

Sunny,

This is what I needed!

Thank you,

Aaron