+ Reply to Thread
Results 1 to 12 of 12

Pivot Chart: Filtering series data

  1. #1
    Registered User
    Join Date
    11-24-2016
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    5

    Pivot Chart: Filtering series data

    Hi there,

    I'm pretty new to Excel so apologies of this is really simple, but I cannot seem to find a solution anywhere. Maybe I am using the wrong terminology.

    Untitled-1.jpg

    Here is my pivot table, as you can see there are 3 series but I would like to have around 20. This begins to look very cluttered so wondered if I could insert a filter so I can select/deselect certain series? This is so I can view certain series at one time without editing the values in the pivot table.

    I would be very grateful for any help at all.

    (and if you are wondering about the subject matter I am a conservator at a large library and we are trapping and recording pests that may be harmful to our collection)

    Thanks!

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

    Re: Pivot Chart: Filtering series data

    Please post a copy of the workbook without sensitive data. It will help us see the issue better and give us something concrete with which to work and develop a solution that is specific to your needs. Very often with pivot tables, adding helper columns to the source data can solve the problem. I can't tell if that would work here.

    Since you have Excel 2010, then you have Slicers. Select a cell in the pivot table and go to the ribbon and Insert -> Slicer. They might be able to do the job for you. Slicers are actually additional filters and are relatively easy to set up. You can also customize them into multiple columns and add color to them to make the output look appealing.
    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.

  3. #3
    Registered User
    Join Date
    11-24-2016
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    5

    Re: Pivot Chart: Filtering series data

    Thank you. I will try out the slicers and let you know how it works. I have attached the workbook. There isn't much data in there (only for the 3rd quarter of this year), but will obviously be adding more data and also expanding the worksheet year on year.

    thanks for the help.
    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,920

    Re: Pivot Chart: Filtering series data

    Here is a solution using slicers.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-24-2016
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    5

    Re: Pivot Chart: Filtering series data

    Thank you very much.

    I can see how slicers can be very helpful but still cannot get them to work the way I want to. (They may not do). If you take the image I previously uploaded as a reference I wish to be able to view that chart and to select/deselect certain series for comparison(eg view 'sum of silverfish' alone, or view 'sum of book louse' and 'sum of woodlice'togther to compare). I hope to do this wotjout editing the chart each time i wish to view a different comparions. I hope that makes things clearer and that maybe there is a simple solution.

    Many thanks
    Attached Images Attached Images

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

    Re: Pivot Chart: Filtering series data

    I see what you want. I can give you a fixed number of charts based on dropdowns using Match and the offset command.

    I can't give you a dynamic chart where you can select a variable number selections without reorganizing the data. The data would have to be in a "normalized" form which looks something like:
    Attached Images Attached Images

  7. #7
    Registered User
    Join Date
    11-24-2016
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    5
    Thank you very much for your reply.

    I see. So does this mean I could have a intermediary table that transforms my data into 'normalised' data? Or would this be very difficult?

    I can see a problem being that there may be a number of different insects in one location/trap

    I ask as the end goal to make the data easily accessible by making it visual, via charts. The 'Imput' tab makes the input of data easy using forms (to me it does anyway).

    Thank you.

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

    Re: Pivot Chart: Filtering series data

    Normalizing the data would take some VB code. I just did something similar. Let me see if I can find that post and maybe modify the code.

    The code will take your data entry and convert it into normalized form on another sheet.

    Normalized data isn't all that bad. You will only have records for data you actually have. You won't have a string of zeros.

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

    Re: Pivot Chart: Filtering series data

    P.S. I found the code, I think it will work with little modification.

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

    Re: Pivot Chart: Filtering series data

    The macro, MakeData will convert the information on the Imput sheet to normalized data on the Normalized Data sheet. The normalized data should be suitable for pivot table analysis.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-24-2016
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    5

    Re: Pivot Chart: Filtering series data

    Apologies for the late reply.

    Thank you very much. I can work much better with this data and it does exactly what I need it to do. I am just unsure how to run the macro myself, I have tried but keep getting an error 'subscript out of range'. Could you help me out with this or is there a thread you could direct me to?

    Thanks again!

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

    Re: Pivot Chart: Filtering series data

    The most likely cause is that you have changed the sheet names. Change the following tab names to match what you have.
    Please Login or Register  to view this content.
    If not, then copy and paste the offending line of code from the debugger. That will tell me what the VBA isn't "getting."

+ 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] Filtering specific data on a pivot table/chart
    By cinstanl in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-23-2016, 12:28 PM
  2. [SOLVED] Filtering data series in a chart
    By Astroboy142 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-21-2014, 12:54 AM
  3. Replies: 1
    Last Post: 09-04-2014, 06:40 AM
  4. Pivot chart: combining data series
    By Brython in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-21-2013, 08:57 AM
  5. how do I keep my data series colour when I refresh a pivot chart
    By reghog in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-29-2005, 09:30 AM
  6. Pivot Chart - X,Y & Data Series Options
    By Graham Haslehurst in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-24-2005, 10:51 AM
  7. Format Data Series in Pivot Chart
    By tobriant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 09:05 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