update pivot table

carol_g_1990

New Member
Joined
Sep 17, 2015
Messages
3
Hello,

I have 3 pivot tables from diferent origenes. I would like to update each one when I select some filter in the slicer (?). How can I do it? all of them has 2 fields in common, "Service" and "Date". I want that, when I select, for example, "Print" or "Navigation" service (or both), the other pivot tables update their information automatically.
Thanks in advance.

Regards.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Under the options toolbar there is a refresh all button if you want to do it manually.
If you want to do it in code then use the feature

Code:
ActiveWorkbook.RefreshAll
 
Upvote 0
Under the options toolbar there is a refresh all button if you want to do it manually.
If you want to do it in code then use the feature

Code:
ActiveWorkbook.RefreshAll


Well, I was thinking in other thing, I copy my code:

Sub Macro1()
'
' Macro1 Macro
'
'

Dim slItem As SlicerItem
Dim i As Long
Dim service As String


applcation.ScreenUpdating = False

With ActiveWorkbook.SlicerCaches("SegmentaciónDeDatos_Servicio1")
For i = 1 To .SlicerItems.Count
If .SlicerItems(i).Selected Then
service = .SlicerItems(i).Name
ActiveWorkbook.SlicerCaches ("SegmentaciónDeDatos_Servicio")
.VisibleSlicerItemsList = Array("[SLA].[Servicio].&[" & service & "]")

Next i
End With

Application.ScreenUpdating = True
End Sub

I want, when I select one o severals Items from "SegmentaciónDeDatos_Servicio1", the slicer "SegmentaciónDeDatos_Servicio" update it information.

My code doesn't work :( Any idea what can I do?

Regards.
 
Upvote 0
I cant quite understand what your code is doing or what you are actually trying to do.
 
Upvote 0
Hello,

I have 3 pivot tables from diferent origenes. I would like to update each one when I select some filter in the slicer (?). How can I do it? all of them has 2 fields in common, "Service" and "Date". I want that, when I select, for example, "Print" or "Navigation" service (or both), the other pivot tables update their information automatically.
Thanks in advance.

Regards.


In the following link I attach an example about what I want to do. I want that: when I click on "Month" Slider at the top, the "month" slider at the bottom update with the same option

https://www.dropbox.com/s/v3983a4ut04uyx5/example.xlsx?dl=0

There is any option to syncronize both slider?

Regards.
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,140
Members
452,381
Latest member
Nova88

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