Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Mixture of 'And' and 'Or' in set analysis

Hi,

I need to use set analysis to limit a table of orders based on certain conditions, which are:

- The order must be have an OrderType of 'Booked'

- The order must either have a Class of 1 or a Category of 1

i.e. OrderType = 'Booked' AND (Class = 1 OR Category = 1)

I've been trying to write some set analysis using intersection but i can't get it right and always gives me errors. Can someone help?

Thanks

1 Reply
anbu1984
Master III
Master III

Sum({<OrderType = {'Booked'},Class = {1}>+<OrderType = {'Booked'},Category = {1}>} Sales)