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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function equivalent to Between

Hello,

Is there anything equivalent to the in or the between operators in QlikView that we can use in an if statement?

thanks.

1 Reply
Not applicable
Author

I think for Between, you're stuck with >= and <=.

For In, you may be able to use Index.

=Index('Test,Yes,Answer,Help', 'Help')
=Index('Test,Yes,Answer,Help', 'Nope')


Index is aimed at finding substrings in strings, but you can use it like an in. Break the values with a character that will never appear in your value list, a comma usually work. If it returns 0, the string was not found. You can use Index()>0 to get a true/false value like an In function would return.