Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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)