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: 
ivandrago
Creator II
Creator II

Only Function help

Hi,

Does anyone know if you can do a OR in a Only function? For example I have the following expression

=Only({$<[Type]={'Comp'}>} Name)

which will only show Names where Type = 'Comp'

I want to changed the query so it will show a Type of 'Comp' OR 'Open', I tried the the following but does not seem to work

=Only({$<[Type]={'Comp'} OR [Type]={'Open'}>} Name)

Has anyone any ideas

Thanks

1 Reply
swuehl
MVP
MVP

You can list more than one value in the element_list:

=Only({$<[Type] = {'Comp','Open'}>} Name)