Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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))