+ Reply to Thread
Results 1 to 6 of 6

Can I Get Pivot Filter Choices without VBA

Hybrid View

  1. #1
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Can I Get Pivot Filter Choices without VBA

    Hey

    Is there any way I can use a formula to get a pivot table's filter choices? For example, if I have region and Pivot Table 1's filters show Northeast and Southwest, can I use a formula to get those two values? Something like =PivotTable1.Filter.Value.

    Thank You
    Last edited by davegugg; 12-28-2012 at 02:55 PM. Reason: Solved
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can I Get Pivot Filter Choices without VBA

    I am wary of saying "no categorically not" but I would be surprised...

    The built in Pivot cell Function is tied to the Data Fields, to retrive values from Page, Row or Column fields is traditionally with likes of INDEX/MATCH etc and then of course you are limited to single cell selections (ie could not handle Page field multi selection).

    Where exactly are the filteres of interest ? Page, Row or Column ?

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Can I Get Pivot Filter Choices without VBA

    not in 2007. in 2010 there are workarounds you can use with slicers though they tend to be a bit clumsy
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Can I Get Pivot Filter Choices without VBA

    Thanks for the answers:
    DO, they are Report Filters.
    JosephP, I actually do have slicers on the pivots, but I've still been unable to get any solutions to work. Do you have any more info on the clumsy workarounds?

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Can I Get Pivot Filter Choices without VBA

    there's a sample here http://www.powerpivotpro.com/2011/09...-in-a-formula/
    there is also a link on that page to a neater method if you can use powerpivot (or excel 2013)

  6. #6
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Can I Get Pivot Filter Choices without VBA

    Thanks, there is a complication that prevents me from using the method in the link you provided, but I was able to convert my pivot table to a powerpivot table, and use that method.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1