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: 
vsabbise
Creator
Creator

How to use 'IN' operator with 'variable' in Qlik Sense

I need to display/List the ID's of the files which has corresponding combination of key words.

I can easily achieve this in SQL using in and '=' operator. How do I do that in Qlik Sense ? I can also use Join in SQL to achieve this.

Example:

select id

from table_A

where

filename in ( select filename from table_A where keyword = 'vkeyword1' )

and

filename in ( select filename from table_A where keyword = 'vkeyword2' )

vkeyword1 & wkeyword2 are input fields that are entered dynamically by the user.

1 Reply
kenphamvn
Creator III
Creator III

Hi

You can using Exists script function

for more detail and example please see

https://help.qlik.com/en-US/sense/September2018/Subsystems/Hub/Content/Sense_Hub/Scripting/InterReco...

Regards

An Pham