+ Reply to Thread
Results 1 to 1 of 1

One slicer for two or more Pivot Tables using PowerQuery (Get&Transform)

  1. #1
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool One slicer for two or more Pivot Tables using PowerQuery (Get&Transform)

    Simple example as usual

    Two range tables changes to Structured Tables
    Basic rule: unique Primary Key for both tables
    1. Click on the first table
    2. On the ribbon go to DATA - From Table
    3. in new window select Close&Load to...
    4. then select Only Create Connection

    do the same for the second table
    1. From Workbook Queries first query (right click) Edit
    2. From Query Editor - Home - Merge Queries - select Merge Queries as New...
    3. You've first table loaded then select from empty field - second query
    4. then click on Primary Key column (PK) on the first selected query and Primary Key column on the second query
    5. at the bottom in Join Kind select Left Outer (bla bla bla)
    6. press OK (If OK button is inactive refresh second query then OK)
    7. In Query Editor you'll see new table called Merge1 (you can change this name to more friendly if you wish. I changed it to : Common)
    8. In this new table last column (or more) has header: NewColumn Name:  newcolumnPQ.jpg
Views: 123
Size:  2.1 KB
    9. click on double arrow and from menu choose appropriate field from the second query
    10. go to Home - Close&Load to... - Only Create Connection
    11. Close Workbook Queries
    • Now create Pivot Table(s) (Insert - Pivot Table)
    • from pop-up select: Use an external data source
    • click on Choose connection
    • select Query - Common (remeber I changed Merge1 to Common)
    • Untick Add this data to the Data Model if you wish
    • select New worksheet or choose place in existing sheet
    • OK

    • Click on the first Pivot Table and from the tab PivotTable Tools, Filter, select Insert Slicer (what kind of slicer it's up to you)
    • then right click on slicer and select Repoert Connections...
    • and select these PTs which you want to manage by this slicer

    on the end click Add Rep if you like it (bottom left corner)

+ 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. Get & Transform (Power Query) not showing certain tables
    By BamBamMoneyBags in forum Excel General
    Replies: 0
    Last Post: 03-22-2017, 12:22 PM
  2. Slicer for tables
    By zico8 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 09-05-2016, 11:05 PM
  3. Replies: 19
    Last Post: 04-04-2016, 02:58 PM
  4. Connecting two or more pivot tables from one slicer
    By meus in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 02-03-2016, 01:11 PM
  5. Is It Possible to Connect A Slicer to Two Pivot Tables?
    By NewJerichoMan in forum Excel General
    Replies: 2
    Last Post: 04-26-2015, 01:35 PM
  6. Slicer on Tables
    By cfleming13 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-04-2015, 04:59 AM
  7. [SOLVED] Link Pivot Tables, Filter with One Slicer
    By Pierce Quality in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-23-2013, 11:19 AM

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