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: 
fcecconi
Partner - Creator III
Partner - Creator III

Need an instr equivalent

I am trying to see if a code is in a series of codes.

If 112 is in 112&113&162&183 set Y else N.  I need to display this in chart

thanks

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

Have a look at the Index() function e.g.

=if(Index('112&113&162&183', 112)>0,'Y','N')

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If(SubstringCount( '112&113&162&18', '112'), 'Y', 'N')


talk is cheap, supply exceeds demand
marcus_sommer

For this you could use index() or wildmatch() or maybe a substringcount().

- Marcus

stigchel
Partner - Master
Partner - Master

Have a look at the Index() function e.g.

=if(Index('112&113&162&183', 112)>0,'Y','N')

fcecconi
Partner - Creator III
Partner - Creator III
Author

thanks.  this worked as I needed