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

Controlling the existence in a values set

Hi,

I need to control that a dimension value is or not in a set of predefined values. Fe, in SQL Server I could write myNumericField IN (0, 1, 2, 3). In QV, how can I write a similar statement?

Thanks

1 Reply
erichshiino
Partner - Master
Partner - Master

You can create you set in a inline statement.

After that, use where exists() to load only the values already in the reference set. Your code would look like this:

Reference:
LOAD * INLINE [
myField
0
1
2
3
];

Load * from [...]
where exists(myField);