+ Reply to Thread
Results 1 to 8 of 8

Display "(Multiple Items)" in the Pivot Table's Report Filter

  1. #1
    Registered User
    Join Date
    09-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    4

    Unhappy Display "(Multiple Items)" in the Pivot Table's Report Filter

    When you select more than one item as the Report Filter, it's displayed as (Multiple Items).

    For example,

    - When you select a single item, "A" from the list of available filters "A, B, C", it would display "A".
    - When you select more than one items, "A, B", it would display "(Multiple Items)".

    Challenge
    Is there a method to display the actual values of these items, then (Multiple Items). In the example given, it would show "A, B" instead of "(Multiple Items)".

    Thank you.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    There's some VB code you can use to build a string of the selected items and show them in the cell next to the filter. You'll need to know sheet name, pivot table name, filter field name and possibly hard code where you want the list to appear.

    I took another tack here. I made it a function so you can use it in other places as well. The syntax is ShowList (SheetName, PivotTableName, FilterName).
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-14-2013
    Location
    USA
    MS-Off Ver
    MS 365
    Posts
    97

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    If you are using Excel 2010, you could use the slicer feature to control your pivot table. Click inside your pivot table, click on the Options contextual tab, then select insert slicers. You can then pick which fields you want to add slicers for. Using the spreadsheet from dflak's post, I modified to use slicers instead of the VBA.
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    Good thought. I prefer non-VBA solutions when I can implement them. Even though they are essentially filters, slicers look really impressive.

  5. #5
    Registered User
    Join Date
    07-10-2017
    Location
    Chicago, IL
    MS-Off Ver
    365 Pro Plus
    Posts
    2

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    I found the function was very helpful with standard pivot tables, however it did not work with a cube. Does it need to be modified for that situation?

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    Hi,

    You may be able to use built-in CUBE functions for that like CUBESET and CUBERANKEDMEMBER.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  7. #7
    Registered User
    Join Date
    07-10-2017
    Location
    Chicago, IL
    MS-Off Ver
    365 Pro Plus
    Posts
    2

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    I am trying to list the "multiple" values selected in a pivot filter. The original function code did this for a regular pivot table, but not one based off a cube. While I am not familiar with the built-in CUBE functions suggested, unless I am missing something, I am not seeing how either will provide the results I am looking for.

    Thoughts??

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Display "(Multiple Items)" in the Pivot Table's Report Filter

    If you are using a slicer to filter, this blog shows how to use cube functions- https://powerpivotpro.com/2012/11/be...-in-a-formula/

    If not, I would think that you need only use the VisibleItemsList property of the relevant pivot field, which only works with OLAP pivot tables.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 12-27-2016, 04:24 PM
  2. Replies: 0
    Last Post: 11-07-2014, 02:08 PM
  3. Replies: 1
    Last Post: 11-05-2014, 04:29 AM
  4. Disable "Select Multiple Items" in a Pivot Filter
    By FixandFoxi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2013, 06:19 AM
  5. Filter report in pivot table with "greater than" and "less than"
    By gygabyte017 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-29-2012, 08:08 AM
  6. Replies: 1
    Last Post: 04-07-2012, 04:36 PM
  7. Pivot table showed "All" instead of "Multiple items" when using datasource from CSV
    By dikchan@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2009, 07:26 AM

Tags for this Thread

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