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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to add avg comparison to chart

Hi all,

Please have a look at my attached straight forward chart.

What I'd like to achieve is very simple. When I click on an employee, I want the chart to compare that employee to the average of all other employee's. Just not sure how to go about it.

Any help would be appreciated.

Kind Regards,

W

1 Solution

Accepted Solutions
morgankejerhag
Partner - Creator III
Partner - Creator III

I think Sunny is close, but one also must remove the currently selected Employee if you want the average of the others. I have modified Sunny's expression to inverse the selection on Employee.

Avg(TOTAL {<Employee = e(Employee)>} Aggr(sum({<Employee = e(Employee)>} CallHours), Month, Employee))

View solution in original post

2 Replies
sunny_talwar

Something like this?

Capture.PNG

If it is, then I can explain you the changes I made to get to this. If not then help me understand exactly what you want.

Best,

Sunny

morgankejerhag
Partner - Creator III
Partner - Creator III

I think Sunny is close, but one also must remove the currently selected Employee if you want the average of the others. I have modified Sunny's expression to inverse the selection on Employee.

Avg(TOTAL {<Employee = e(Employee)>} Aggr(sum({<Employee = e(Employee)>} CallHours), Month, Employee))