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: 
jphillipsepg
Contributor
Contributor

Set analysis: ignore, but don't ignore

So I'm hitting a stumbling block.  I am trying to analyze the on time for all operators ignoring the filter of a chosen operator. This part, I've figurned out..

Sum({<[Operator Name]=, [Op Login Type]={'Operator'}, [Op OnTime])

My challenge now, is that I have operator sub sets.. Operator, Office Employee, Trainee, Supervisor.  I want to evaluate the time for all operators while still ignoring the filter, and exclude Operators belonging to Office Employee ad Trainee.

Sum({<[Operator Name]=, [Op Login Type]={'Operator'}, [Operator Group]-={'Office Employee'}, [Operator Group]-={'Trainee'}>}[Op OnTime]) 

This is what I tried, but it is not working.  I'm guessing I need to embed a layer of set analysis within the other analysis?

Any help would be deeply appreciated.

Thank you

1 Solution

Accepted Solutions
sunny_talwar

Try this

Sum({<[Operator Name], [Op Login Type] = {'Operator'}, [Operator Group] = e({1<{'Office Employee', 'Trainee'}>})>} [Op OnTime]) 

or this

Sum({<[Operator Name], [Op Login Type] = {'Operator'}, [Operator Group] = -{'Office Employee', 'Trainee'}>} [Op OnTime]) 

View solution in original post

1 Reply
sunny_talwar

Try this

Sum({<[Operator Name], [Op Login Type] = {'Operator'}, [Operator Group] = e({1<{'Office Employee', 'Trainee'}>})>} [Op OnTime]) 

or this

Sum({<[Operator Name], [Op Login Type] = {'Operator'}, [Operator Group] = -{'Office Employee', 'Trainee'}>} [Op OnTime])