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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Worf

Well-known Member
Joined
Oct 30, 2011
Messages
4,183
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,139
Messages
5,835,633
Members
430,372
Latest member
contentment

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
Top