I have a survey data set that I need to periodically update and produce reports out of in Excel 2016. I want to filter the data by location and then compare locations by year>quarter to a total from all reporting locations ("provincial") using some charts.
The data is categorical: column is called "location", and then there are about 20 locations available to select.
I "solved" this originally by creating pivot charts and converting them to formulas to create standard charts that allowed me to add provincial totals. This is not flexible though and I want to do a better job.
I tried adding a new column to the data that is populated by "Provincial" for each row. Now I can create a set of pivot tables for each question and connect them with a filter so that one pivot has the locations I want and the dates I want, while the second pivot has the provincial total filtered by the same dates. Only problem with this is that you can't create a chart that pulls data from two different pivot tables.
Example Pivot tables filtered to one location for 2019
One option I considered was to somehow duplicate each row but replace the location data for each with "provincial". This way I could filter everything and have provincial as a location option that has all of the data I want. I don't know how to do this in any kind of automated way though, and it needs to be flexible enough for me to add new data over time.