I have a 22 year data table with about 100 columns of gathered info. I can create all the pivot tables and pivot charts I want with an average based on the total count of years. Great. What I need to do is to create an average of the total based on the count of slicer items selected. Example: Row: Years 1995 - 2016. Column: Total widgets produced. Total Sum for period is 4,685 (bar pivot chart). Total Average is 213 (line in same pivot chart). All is good. But when I add a slicer and the user selects, let's say, 3 years, my averaging formula still shows the 22 year avg. How do I calculate the average of the total widgets for the years selected?
Years selected 1995 - 254 widgets, 2005 - 248 widgets, 2015 - 313 widgets. The line should move from 213 to the new average of 272.
Years selected 1995 - 254 widgets, 2005 - 248 widgets, 2015 - 313 widgets. The line should move from 213 to the new average of 272.