Pivot table query

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
767
Office Version
  1. 365
Platform
  1. Windows
Good evening,

I have a pivot table feeding from data, but would like to know if uts possible to get the filters to restrict each other.

Ie. If I select town in filter 1, I want filter 2 to show the post codes that are in the data as an second filter, then to show another filter option in filter 3.

Sorry if this sounds strange but the informatation is setup this way in the data its feeding from

Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Please use XL2BB and upload a sample of your raw data and your PT and then show us what you mean. Tough to visualize what is not visible.
 
Upvote 0
Apologies,

I am not able to upload a sample as my laptop is playing up, but I have been able to snip 2 pictures (1 of Data & 1 of the Pivot setup).
What I want to be able to do I can on the Data its self by filtering each column, but when I complete this via the pivot table it shows data that isn't relevant to the filter.

If possible for ease of understanding I don't want to show something in the filter below each one if its not relevant.
For instance if I choose JCB as "Unit Name" I would only expect to see "Location" as MCR1 & MCR2, but MCR3 is showing also and all the way through the filters

thanks
 

Attachments

  • Data Image.PNG
    Data Image.PNG
    14.7 KB · Views: 3
  • Pivor Image.PNG
    Pivor Image.PNG
    7.2 KB · Views: 3
Upvote 0
to be sure: you select one filter and you want eliminate not relevant elements from another filter?
 
Upvote 0
That's Right @sandy666, I have previously done something similar in a userform.

Surely there must be something similar I can do for a pivot table.

thanks
 
Upvote 0
I don't think so it is possible with standard Pivot Table only
Probably you'll need vba to do that

Unit NameLocationArea ManagerUnit ManagerSite MgRWorker
DiggerMCR1AMIDaveBusyWorker 9
DiggerMCR2AMIJoeworker 10
DiggerMCR1AMIDaveBusyWorker 2
DiggerMCR1AM2DavebreakWorker 3
JCBMCR2AM2JoeWorker 2
JCBMCR2AM2JoeWorker 2
JCBMCR1AM3DavebreakWorker 1
JCBMCR2AM3JoeWorker 2
CraneMCR3AM3NewWorker 3
 
Last edited:
Upvote 0
You can try Power Pivot and DAX but I am not sure it will be possible also but maybe I'm wrong
 
Last edited:
Upvote 0
With Power Query, you can build a parameter that will allow you filter on the Unit Name. Here is a tutorial on how to filter in PQ using parameters.

 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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