+ Reply to Thread
Results 1 to 2 of 2

Removing Slicer Option with Data

  1. #1
    Registered User
    Join Date
    02-19-2021
    Location
    Peoria, IL
    MS-Off Ver
    365
    Posts
    28

    Question Removing Slicer Option with Data

    Hey All,

    I'm building a dashboard with Pivot Tables and slicers; however for a few of the slicers it is providing options that I do not want to be available. I see that it is very easy to hide/remove options where there is no data associated with it, however the selections that I would like to remove do in-fact have data associated with it. Is there any way to have a slicer only provide the options that I want?

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

    Re: Removing Slicer Option with Data

    Make an Excel table with a list of those values you want Excluded. For example suppose you want to exclude specific vendors from the data. Now in your source data for the pivot table add a helper column Called Exclude

    Then enter in a formula to check if the vendor in the raw data is on the exclusion list. This formula would look something like
    =ISNUMBER(MATCH([@Vendor ID],Table_Exclude_Vendor[Vendor ID],0))
    This will evaluate to True if the vendor is on the list and False otherwise.

    Now build a second Pivot table with this column as either the filter or row and attach a slicer to it. Then link that slicer to your main pivot table to and set it to False.

    Now the main pivot table will have these vendors pre-filtered out. They will not appear in the main table and if you set the slicers on the main table the right way, they won't even show up there.

    If you want to see this in action, include a sample workbook.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. [SOLVED] Adding Search option to Slicer box
    By yarlachiru in forum Excel General
    Replies: 16
    Last Post: 03-26-2023, 12:41 AM
  2. VBA to loop through slicer option and export each to PDF
    By KirstieA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2019, 05:55 PM
  3. Replies: 1
    Last Post: 06-12-2019, 03:48 PM
  4. [SOLVED] Hide or disable option button or show empty graph when slicer item has no data on userform
    By Raylou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2018, 05:24 AM
  5. Print each Slicer option
    By MattKoleczko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2018, 03:43 AM
  6. Ribbon is missing slicer option
    By stephme55 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-11-2016, 06:25 PM
  7. 'select all' option in slicer
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-24-2012, 09:23 AM

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