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!
 

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Worf

Well-known Member
Joined
Oct 30, 2011
Messages
4,093
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,370
Messages
5,595,764
Members
414,017
Latest member
surajks

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