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: 
Anonymous
Not applicable

SQL IN function in QlikView

Hi all,

I am looking for the IN function (which I know from SQL) in QlikView.

As long as I don't know this function my expression is for example:

=if(accountnumber='1' or accountnumber='2', accountnumber, 0)

In SQL I would do it this way:

where accountnumber in('1', '2')

Can anyone help me with this? Thanks in advance.

Regards,

Henco

1 Solution

Accepted Solutions
Not applicable
Author

Hi henco,

Try this :

where MATCH(accountnumber,'1','2')

Regards,

Eric.

View solution in original post

3 Replies
Not applicable
Author

Hi henco,

Try this :

where MATCH(accountnumber,'1','2')

Regards,

Eric.

Anonymous
Not applicable
Author

Thanks a lot Eric.

Regards,

Henco

Sokkorn
Master
Master

Hi Henco,

Try it with this set analaysis: sum({$<accountnumber={'1','2'}>} accountnumber)

Do let me know, if you have a good luck with this.

Regards,

Sokkorn