Pivot Table Challenge - Subtotals Above Pivot Table + Slicers

SeveralTradesLater

New Member
Joined
May 30, 2023
Messages
14
Office Version
  1. 2019
Platform
  1. Windows
Hi everyone,

Encountering a bit of a new challenge today. I inherited a file with a fairly lengthy Pivot Table with Slicers so we are adding a "artificial" grand total row on top of the pivot.

We are currently using =iferror(getpivotdata) to capture to grandtotals from the pivot, but it doesn't "move" with the slicers and doesn't align with the products.

Please kindly let me know what formula can I use to capture the desired state below?

Greatly appreciated.

Thank you.

Incorrect view with =Iferror(getpivotdata)

"Artificial" Grand Total with Iferror(Getpivotdata)0.000.00.7.000.000.00


Desired State - Assumed there are many slicer fields not shown.

Example: Products Selected in Slicer (Banana and Strawberries + FY17+19)



Grand Total (Above Artificial)Formula to Pickup Subtotal (Changes with Slicer Input) = 6.00Formula to pickup subtotal (changes with slicer input) = 12.000.00 (Fields Should be zero when no products are below, but if additional product is selected should reflect new subtotal based on slicers)0.000.000.00
BananaStrawberries
FY175.002.00
FY191.0010.00
Grand Total (From Pivot)6.0012.00



Pivot Table with No Slicers Active "Baseline"
AppleOrangeBananaPeachKiwiStrawberries
FY171.002.005.007.001.002.00
FY182.002.001.002.005.0010.00
FY193.004.001.002.001.0010.00
Grand Total6.008.007.0011.007.0022.00
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Been looking up examples online for hours. Can't seem to find the right approach. Should I be using index match? Any assistance would be greatly appreciated as I am still learning.
 
Upvote 0
I created a new sample screenshots with different values from the thread, but essentially the same scenario. When I click the unit slicer the fields no longer align. The two values should be directly to the left 2200 should be on top of DEF Paid (Cell B1) 69000 DEF PO (C1). Unfortunately I am unable to use XL2BB until I get my own computer. Any assistance would be greatly appreciated. Thank you.

Aligns with Unit.png
 

Attachments

  • Does Not Align with Unit after Slicers Used.png
    Does Not Align with Unit after Slicers Used.png
    185.6 KB · Views: 15
Last edited:
Upvote 0
Resolved! Talking to myself here, but don't want someone else spending time on this when others might need help.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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