Connect Slicer to Multiple Pivot Tables from Different Data Source

We’ll link a slicer between two data sets in the sections below. The first data set is for the sales data in the Sales worksheet, and the second data set is for the returned products from the sold products in the Returns worksheet. Using the data from the Sales and Returns worksheets, we’ll build a new worksheet for the corresponding value in Region. We’ll put them in a separate worksheet labeled Region. Then, we’ll combine the Sales and Returns data into two pivot tables in the same spreadsheet. We’ll connect the slicer for Region values to the two pivot tables and analyze the data for Sales and Returns Values.

Step 1 – Create a Table with Sales Data

  • In the Sales worksheet, select a cell.
  • Press Ctrl + T to create a table.
  • Select the data range with the column header.
  • Click OK.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Name the table as Sales.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source


Step 2 – Create a Table with Return Data

  • In the Returns worksheet, select a cell.
  • Press Ctrl + T to create a table.
  • Click OK after selecting the data range with the column header.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Give a name (Returns) to the table.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source


Step 3 – Create a Table for the Slicer

  • Select the Region column and press Ctrl + C to copy.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Go to the Regions sheet and press Ctrl + V to paste.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • To create a table, press Ctrl + T.
  • Select the data range by enabling My table has headers.
  • Click OK.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • After creating the table, name it as Region.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • To get the only unique values, click on the Remove Duplicates command.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Click OK to create the table with unique values.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Your table for creating a slicer will be created with the unique values of different Regions.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source


Step 4 – Insert a PivotTable from the Sales Table

  • In the Sales worksheet, click on the Insert tab.
  • From the Tables ribbon, choose the PivotTable option.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • In the Table/Range box, check whether the table name (Sales) is right.
  • Click on the New Worksheet option to create the PivotTable in a new worksheet.
  • Select the box Add this data to the Data Model.
  • Press Enter.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Your first PivotTable will appear in a new worksheet (Sheet1).
  • Select the fields (Branch and Price) to show in the PivotTable.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source


Step 5 – Insert a PivotTable with the Returns Table

  • Click on the Insert tab.
  • Select the PivotTable from the Tools group.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Check the Existing Worksheet box.
  • To define a location in the existing sheet, click on the right-side icon.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Go to the existing PivotTable worksheet (Sheet1).
  • Click on a cell (D3) to select the location for placing the new PivotTable.
  • Click on the right-side icon in the box to go back.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Your selected location will appear in the Location box.
  • Click Enter.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Your second PivotTable with the Returns value will appear in the same sheet.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source


Step 6 – Insert a Slicer with the Region Table

  • Go to the PivotTable Analyze tab.
  • From the Filter group, click on the Insert Slicer command.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • From the Slicer box, choose All.
  • Click on Region.
  • Press Enter.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • The Slicer for the Region will show as the image shown below.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source


Step 7 – Build a Relationship with the Slicer

  • Click on the PivotTable Analyze tab.
  • From the Calculations group, click on the Relationships command.

Steps to Connect Slicer to Multiple Pivot Tables from Different Data Source

  • Click on New to add the first relation.

Sample Data

  • For establishing the relation between Sales and Region, choose the following options from the drop-down lists of the Create Relationship box.
  • Press Enter.

Sample Data

  • Click again on New to create another relationship.

Sample Data

  • To create the relationship between the Returns table and the Region table, select the following options as shown in the box below.

Sample Data

  • After adding the two relationships, click on Close.

Sample Data

  • Right-click the Slicer box.
  • Click on the Report Connection option from the list.

Sample Data

  • Check both checkboxes to show the relationship between the two PivotTables.
  • Click OK and your two PivotTables are connected with the Region Slicer.

Sample Data

Read More: Excel Slicer for Multiple Pivot Tables (Connection and Usage)


Step 8 – Final Result

  • Click on a Region (such as MID), and your both PivotTables will show the relations between the Branch and Prices for the particular Region.

Sample Data

  • Choose another option from the Region (NOR), and the Slicer will filter the results for both the PivotTables.

Sample Data

Read More: [Fixed] Report Connections Slicer Not Showing All Pivot Tables


Download the Practice Workbook


Related Articles


Get FREE Advanced Excel Exercises with Solutions!
Bhubon Costa
Bhubon Costa

Bhubon Costa, B.Sc. in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology, has worked with the ExcelDemy since 2021. Currently, he has been working as a reviewer. Notably, he has written over 90 articles and led several VBA content development teams. He has a great passion for the fields of data analytics and data science. His areas of expertise include Excel VBA, Power Query, Pivot Table, Power BI, MySQL, PostgreSQL, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo