VBA to expand pivot table

Pranesh

Board Regular
Joined
Jun 29, 2014
Messages
216
Hi,

I have 24 pivots in sheet1 and in sheet2 I have a dashboard which will have the numbers from the Pivot output. I have used GETPIVOTDATA to fetch the data from Pivot to my dashboard Table.


I have 5 slicers connected to all the 24 pivots. I have years as data in one of the pivot as columns and it will showcase the values as 2017, 2018 & 2019. When i click 2019 in slicer the pivot get filtered to only 2019 and gives me the data in Dashboard view. Once i clear the entire filter 2019 is in expand view and 2017 & 2018 is been changed to collapsed view. Due to that in my dashboard 2017 & 2018 data is getting #REF error.


How to avoid pivot filter not to collapse column value.
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,105,931
Messages
5,508,187
Members
408,669
Latest member
AgsikapAko

This Week's Hot Topics

Top