Is There a Way to Control the Field Used in a Row by a Slicer in a PivotTable

CSMcVey

New Member
Joined
Oct 30, 2012
Messages
21
I have a current PowerPivot file that had a hierarchy as follows:


  • Division
  • Region
  • Sales Rep
  • Headquarters
  • Firm

I then have some metrics like:


  • Open Orders
  • Closed Orders
  • Revenue
  • Claims

I have a PivotTable and I would like to control what field is placed on the rows by the use of the filter. I currently have the entire hierarchy as the rows and they are nested. What I really want is if the user selects 'Division' from a 'Visibility Slicer' then the Division values would be seen in the rows. If the user selects 'Sales Rep' then the Sales Rep values would be seen in the rows. I would likely only want one value to be selected and can add some logic about what to do if they choose multiple.

What I don't know how to do (or even if it is possible) is - how to control what field is used in the rows by a slicer.

Thanks in advance.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Maybe some vba to adjust the pivot table for the row values attached to some buttons or option boxes and maybe one slicer for some category you wouldn't need to adjust like Region?
Changing row values is not a filter process so not sure how this could work on slicers. I found this maybe it could help with understanding how to start.

VBA to Change Row Filters for Multiple Pivot Tables off of a Predetermined Range
 
Upvote 0

Forum statistics

Threads
1,226,593
Messages
6,191,913
Members
453,686
Latest member
vlmiller845

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