Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
dunnalahk123
Creator III
Creator III

How to Pick ISO CODE from a Field

Hi,

Can Some one Help me how can we identify 2 letter ISOCode From a Project Name Field.

For Example i have 2 project Names from below but i have to get "CA" and "US" From below Project Names.

i have thousand of values in a project Name Field  so i have to pull all ISO Codes From that Field.

It will be always after second hyphen or Third hyphen or always 10 digit number.

  

Proactive Services-2054898610-CA-LIQUOR DISTRIBUTION BRANCH
PS - HP Proactive Care-2151293980-US-Oklahoma Housing Finance Agency

Can Some one help  me to find out. For your reference i am attaching the Qlikview app.

Best Regards,

HK

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this?

SubField(FieldName, '-', -2) as FieldName

Or

SubField( Mid( FieldName, FindOneOf(FieldName,'1234567890')),'-',2) as FieldName

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

1 Reply
Anil_Babu_Samineni

May be this?

SubField(FieldName, '-', -2) as FieldName

Or

SubField( Mid( FieldName, FindOneOf(FieldName,'1234567890')),'-',2) as FieldName

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful