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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
xyz_1011
Partner - Creator II
Partner - Creator II

Find String

Hi there,

for a list of comma separated strings, like

cloud, sun, sunshine, road, roadster

what is the right way to identify a specific string like 'sun' (but ignore 'sunshine') or 'road' (but ignore 'roadster') in the UI

Thanks a lot in advance!

Labels (2)
2 Replies
marcus_sommer
MVP
MVP

You may use something like: wildmatch(string, '*sun,*', '*road,*') to find the mentioned sub-strings. Depending on your use-case it might be also helpful to split the string into multiple rows within the script, for example with: subfield(string, ', ') as SubString.

- Marcus

nsm1234567
Creator II
Creator II

Hi there,

As the other post mentions, I'd likely do this sort of work in the script, but depending on your use-case you could also do more hacky things like:  =SubStringCount(Replace(Strings,' ',''),',sun,')