Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mrainey18
Creator
Creator

Set Analysis Exclude one field but Include another

I am trying to find the average sales for one employee for each category and compare that employee to the average sales of all other employees.  BUT I only want the categories associated with the selected employee.  I dont want to have to select all the categories.

This gets me the first half:

Avg(Sales)  // For one employee

Avg({<FullName=,EmployeeID=>}Sales) // For all employees

I just now need to only display the selected employees Categories.

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe this if Category is your dimension field and you've selected an employee:

Avg({<FullName=,EmployeeID=, Category = p() >}Sales)

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Maybe this if Category is your dimension field and you've selected an employee:

Avg({<FullName=,EmployeeID=, Category = p() >}Sales)

mrainey18
Creator
Creator
Author

P() &amp; E() and where do you use them?

I'm referencing this because I've never heard of these before.  Thank you for your quick answer!