+ Reply to Thread
Results 1 to 9 of 9

Slicers to sync multiple pivots from multiple data sources?

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Essex, England
    MS-Off Ver
    Excel 2013
    Posts
    21

    Question Slicers to sync multiple pivots from multiple data sources?

    Hi all,
    Help please? Firstly what I want to do is to a a slicer control all pivot tables irrespective of which data connection they have. For instance I have workbook using several different external connections, but every single one has 'name' as a field with the same list of names.

    I have read alot of post today and come to the conclusion that VB is required, but not found a solution that yet makes it work. So basically I have a filter page with multiple slicers, which when changed would ripple through to all slicers and ultimately Pivottables. Ideally it would be to any worksheet and any pivot table. Also any common field could be amended, and could be a single item selected or multiple items.

    The data sources are generally sql queries against various DBs.

    Any feedback, help, examples and advice would be much appreciated.


    Thanks

    -CL

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Slicers to sync multiple pivots from multiple data sources?

    Here!

    Check if this helps!

    https://support.office.com/en-us/art...651785d29d#bm4
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Slicers to sync multiple pivots from multiple data sources?

    Hi CL,

    Check the attached file; there are 4 Pivot Tables, 4 Charts & 4 Slicers which are linked with each other.
    If you click on any Slicer; all of the charts will be updated automatically.

    If this does not resolve your problem then post your sample file with atleast 2 PT & Slicers.

    Regards,
    AM

  4. #4
    Registered User
    Join Date
    04-04-2015
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    2

    Re: Slicers to sync multiple pivots from multiple data sources?

    This approach doesn't work- as it is all on a single data source. User above has multiple datasources but wants to sync slicers across it.

    I just had it working but had an Excel crash. Will try to re-build and share.

  5. #5
    Registered User
    Join Date
    01-27-2016
    Location
    Atlanta
    MS-Off Ver
    Windows 7
    Posts
    1

    Re: Slicers to sync multiple pivots from multiple data sources?

    Were you able to get it to work? I have the exact same question as you.

  6. #6
    Registered User
    Join Date
    05-20-2016
    Location
    Cairo, Egypt
    MS-Off Ver
    365
    Posts
    1

    Re: Slicers to sync multiple pivots from multiple data sources?

    I have been searching for a good answer for this also, I have 4 Pivot tables each with its own data source. Slicers for each Pivot table with mostly the same items.
    I want to sync One slicer across all slicers, so what ever slicer item I select on the main one will select on the rest of the slicers

  7. #7
    Registered User
    Join Date
    12-08-2016
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    1

    Re: Slicers to sync multiple pivots from multiple data sources?

    I have the same question as well. Trying to work with a single slicer on multiple data sets with common column names.

  8. #8
    Registered User
    Join Date
    06-20-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    1

    Re: Slicers to sync multiple pivots from multiple data sources?

    Hi Guys,

    After one day googling and tearing my hair because of failure I found a solution to this !!!!!

    So when you have different data sources (lets say 2) you need to create a third one which you use as primary key to connect both data sources. The primary key must be just one (no duplicates) so we can create one to many connection.

    All sources must be connected twice in Analyze Tab Relationships and in slicer options - report connection. And another important thing is to tick box "Add data to Data model " when creating Pivot table.

    So how to do it :

    We have 2 data source where we wanna filter one column, lets say Region. We create new table for primary keys with column A Region ID (or whatever) and column B Region.

    From all 3 tables we create Pivot tables where we MUST tick option "Add data to Data model"

    Then we need to create relationships between tables. So when u click to pivot table in Analyze tab choose Relationships and click new. (if it created automatically delete it and do it manually). Now you need to create 2 connections (one connection for each data source) with primary table. So primary key table / column Region to source 1 / column region and primary key table / column Region to source 2 / column region.

    Now we create Slicer from Primary key Pivot table, right click and choose report connections and tick both pivot tables u want to create connection to.

    And voila.

  9. #9
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Slicers to sync multiple pivots from multiple data sources?

    What the above post is pointing persons' toward is data modeling. Google/research that for Excel best practices. Referential Integrity is a must.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Synchronize Slicers with multiple data sources
    By dkjhn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2015, 02:56 PM
  2. Update multiple pivots tables with external data sources at once
    By ayalami79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2013, 11:53 AM
  3. VBA Pivot Table - Multiple Tables - Multiple Sources of Data
    By ryanmorris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 03:13 PM
  4. Replies: 0
    Last Post: 12-12-2011, 07:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1