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

Reference Line Exclude Value

Does anyone know how to create a reference line that is the average of all values in the dimension except the selected one?  For example, I have a bar chart with the quantities of each serial number.  When I select a serial number, I want to show a reference line that is the average of the quantities of all serial numbers except the selected one. 

Labels (2)
1 Reply
Lisa_P
Employee
Employee

For your reference line expression, you use Set Analysis to exclude the selected value

eg  {<[serial number]=-{<$(=GetSelectedValue([serial number]))>}>}Avg(Aggr(Count([serial number), [serial number))