Consulting

Results 1 to 9 of 9

Thread: complex slicer

  1. #1
    VBAX Regular
    Joined
    Jun 2008
    Posts
    72
    Location

    complex slicer

    Let's say I have a data table with 50 rows. Each row of data represents a USA state.

    Is it possible to set up a pivot table and use a slicer that looks like this...
    - north
    - south
    - east
    - west
    - coast

    So each state could fall into multiple catagories. Florida, for example, would be classified as "south", "east" and "coast".

    Is this doable? thank you!

  2. #2
    Similar to this maybe?
    Attached Files Attached Files

  3. #3
    VBAX Regular
    Joined
    Jun 2008
    Posts
    72
    Location
    Thanks for the reply Jim. Your example is actually what I'm trying to avoid. Is there a way to get all 6 buttons you have listed into one single slicer control?

  4. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,872
    Yes this is possible, but it depends on how your source data is currently arranged. Can we get a peep at that? A sample workbook would be ideal.

    Another question: If you selected say North and East in this slicer, what do you want to see in the results; all counties that are either North or East (perhaps about 3/4 of your states) or those which are both North and East (only about a quarter of your states)?
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  5. #5
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,872
    You hardly ever say Thank you.

  6. #6
    VBAX Regular
    Joined
    Jun 2008
    Posts
    72
    Location
    Thank you. Sorry for the late response. I was out of town and just now am getting a chance to respond.

  7. #7
    VBAX Regular
    Joined
    Jun 2008
    Posts
    72
    Location
    Attached is a sample file.
    Attached Files Attached Files

  8. #8
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,872
    Ahhh, you're using the Data Model/Power Query. I suspect this question would be better moved to the Excel BI section (http://www.vbaexpress.com/forum/foru...p?100-Excel-BI).
    I'm not up to speed on this yet.

  9. #9
    VBAX Regular
    Joined
    Jun 2008
    Posts
    72
    Location
    I'll do that. Thanks!

Posting Permissions

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