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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

function('abcd', 'bc') = true

Hi All,

I'm looking for a function that would state (true/false or position) whether a full given substring is included in a string e.g.

1. function('abcd', 'bc') = true / 2

2. function('abcd', 'be') = false / 0

I tried "findoneof" but it searches any character of a substring in a string so that in the second case it results in '2' ('b' is in the 2nd position).

Is there such a function or how else could I solve it?

BR,

Przemek

1 Solution

Accepted Solutions
Not applicable
Author

Index('abcd', 'be') would give you the position..

SubStringCount('abcd', 'bc')>0 would give you true/false (-1/0)

View solution in original post

1 Reply
Not applicable
Author

Index('abcd', 'be') would give you the position..

SubStringCount('abcd', 'bc')>0 would give you true/false (-1/0)