Pivot filter and slicer combo

ngh007

New Member
Joined
Dec 29, 2016
Messages
1
Hello,

Im trying to create multiple pivot tables which synchronize on the same filters. I also have slicers which are linked to all the pivots. The problem is that while the slicers work synchronously with the pivots, the filters only seem to impact the ONLY one table at a time.

Im trying to find a way such that:
either the filters are connected across tables
Or the slicers connect to the filters

Ive been looking online for so long and all results I found talk about slicers and avoid filters - I need both.

Im using Excel 2010.

Thank you!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hello and welcome to the Board


You could use VBA code attached to a button; clicking it would apply filters across all tables, as the example below does:

Code:
Sub Filter_All()
' Excel 2013
Dim ws As Worksheet, pt As PivotTable, mpf As PivotField
Set ws = ActiveSheet
MsgBox ws.PivotTables.Count & " tables at " & ws.Name
For Each pt In ws.PivotTables
    Set mpf = pt.PivotFields("GROUP")
    If pt.Name = "PivotTable2" Then Set mpf = pt.PivotFields("Status")
    mpf.PivotFilters.Add2 xlValueEquals, pt.PivotFields("Count of Stat"), 2
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top