I have two different data set but I would like to have one slicer that controls both pivots. The slicer would of course control/filter the same field group.
Is there a code to connect them or a method to do this?
I have two different data set but I would like to have one slicer that controls both pivots. The slicer would of course control/filter the same field group.
Is there a code to connect them or a method to do this?
If you have 2 pivots with the same pivot cache (therefore relating to the same set of data), and you have a slicer connected to one of the pivots, you can connect the slicer to the other pivot by selecting the slicer, then Slicer Tools -> Options -> Report Connections and place a check against the pivots to be controlled by that slicer.
If I understand what your asking, then thats not the way it is meant to work.
As I understand it you have:
- 2x data sets
- 2x Pivots (1 per data set)
- Want to use a slicer that can control both?
If the above is correct this doesnt work as Excel has no way of ensuring that the field is in both data sets as they are unrelated/independent. Regardless of if you and I as human beings are smart enough to look at both and realize the 2 data sets share a relationship between fields...Excel is dumb and sees no such connection, it views them as 2 separate batches of data unrelated to each other.
This leads to the concept of relational databases and relationships between tables/data sets. You could potentially use PowerPivot and data models to relate the data to each other and then work with it, however that could be like killing an ant with a machine gun.
You could alternatively merge your data if both sets share the same fields onto another sheet and then base everything off of the consolidated data table.
VBA or not, this is just how data works in Excel. You may be able to use VBA to consolidate the data or manipulate the data model but honestly, its just another layer of complexity that you are best off manually putting to the test before attempting to code it.
Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.
"I am here to help, not do it for people" -Me
I see. I will just have to consolidate the two data sets so they both share the same cache. Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks