Force Pivot to display no data

mdmilner

Well-known Member
Joined
Apr 30, 2003
Messages
1,362
My team inherited a pivot that does this.
Workbook uses multiple SQL statements to populate multiple pivots on multiple tabs.
The pivots are linked using slicercache. The "controlling" pivot has a larger list than the destination pivot.

On the original/unmodified workbook, when the "controlling" pivot chooses only items that are not in the destination pivot, when the last item is sliced out, the pivot displays "multiple items" selected and no data appears in the pivot.

On the changed version, when the last item in the destination pivot is removed, it reverts to "all".

Any ideas on forcing this behavior or what's likely to be the setting that allows for it?
I believe the only change to the destination pivot is in the SQL statement.

Slicercache is being managed like this if it is relevant.
Code:
    For Each si1 In sc5.SlicerItems
        sc6.SlicerItems(si1.Name).Selected = si1.Selected
        sc12.SlicerItems(si1.Name).Selected = si1.Selected
        sc13.SlicerItems(si1.Name).Selected = si1.Selected
    Next si1

And i always go with, don't alter what works unless it's horribly innefficient or broken.

Mike
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Naturally, an idea pops up after detailing the problem. I hacked the data to add a single dummy record labelled "NONE" which is not a value in the source pivot/slicercache. It works differently.

Just curious if anybody has seen this. Guessing it's some sort of setting/combination.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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