Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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