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: 
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)