Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
chaper
Creator III
Creator III

How to find string value from Space separated String field

I have field with space separated multiple strings.I want to find a particular string value from that field.The position of that particular string value can be anywhere and it changes.How to find the particlar string?

thanks in advance

23 Replies
b_garside
Partner - Specialist
Partner - Specialist

Since the Datsource appears to be Tag like in nature with multiple values per row are you trying to pick just one or into separate parts using SubField() etc...  ?

petter
Partner - Champion III
Partner - Champion III

If( DataSource Like '*SQL*' , DataSource , 'Other)

petter
Partner - Champion III
Partner - Champion III

If( DataSource Like '*SQL*' , 'SQL' , 'Other' )

chaper
Creator III
Creator III
Author

See below

String.JPG

I want to create a field of source type.If i make selction SQL in source type field i want ot see only SQL items with 1,2,3  and if oracle selected only oracle  items 1,3,4

chaper
Creator III
Creator III
Author

I tried .sub field is creating individual values of source and ends up as one many

b_garside
Partner - Specialist
Partner - Specialist

Perhaps if you could give us a sample mock-up of how it should appear once processed?

I think either SubField or eh Like will do the trick. You will have many combinations of groups since you are allowing multiple Tags per DataSource is that ok?

b_garside
Partner - Specialist
Partner - Specialist

Then using Subfield will work.

chaper
Creator III
Creator III
Author

Thanks Rob for reply.But doing subfield(String,' ') is creating multiple values for each Item ID.One to many.

chaper
Creator III
Creator III
Author

subfield(String,' ') is creating multiple values for each Item ID.One to many.

chaper
Creator III
Creator III
Author

Thanks for the reply.I will try this code