Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Create Multiple Charts from one Pivot Table or link pivot tables to one Report Filter

Latest post Thu, Sep 3 2009 5:33 PM by satfix. 3 replies.
  • Thu, Aug 20 2009 11:25 AM

    • rebsbails
    • Top 200 Contributor
    • Joined on Thu, Aug 20 2009
    • Posts 4
    • Points 68

    Create Multiple Charts from one Pivot Table or link pivot tables to one Report Filter

    Hello,

    I have created a pivot chart that has the ROM for several campaigns and their attributes (creative, offer, location, etc..).  The report filter I have set can filter on a date period or campaign type (online, print...).

    What I'd like to do it to create a series of pie charts to show the ROM for the various attributes;

    eg. 1 chart for various Creatives, 1 for locations, 1 for offer type...

    But I want to link them so that when I select a campaign type, all the tables change for that type, and vice versa.  Currently I have copied the chart eight times and have to change the report filter on each one to adjust the report.

    Not sure if this is possible or if there is a better way to do it but any help would be great!

     

    Thanks

    Rebs

    • Post Points: 37
  • Sat, Aug 22 2009 1:46 AM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 541
    • Points 9,270
    • MVP

    Re: Create Multiple Charts from one Pivot Table or link pivot tables to one Report Filter

    I'm not sure you would be able to do this without VBA iterating through each of the filter items

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    • Post Points: 21
  • Tue, Aug 25 2009 11:41 AM In reply to

    • rebsbails
    • Top 200 Contributor
    • Joined on Thu, Aug 20 2009
    • Posts 4
    • Points 68

    Re: Create Multiple Charts from one Pivot Table or link pivot tables to one Report Filter

    Thought not, but always hopeful as I don't know VBA yet.  Thanks Nick. Smile

    • Post Points: 5
  • Thu, Sep 3 2009 5:33 PM In reply to

    • satfix
    • Not Ranked
    • Joined on Thu, Sep 3 2009
    • Posts 1
    • Points 5

    Re: Create Multiple Charts from one Pivot Table or link pivot tables to one Report Filter

    I have a pivot table that actually changes about 15 different graphs and charts each time you flip the switches. I did it without any vba or scripts.

    This is how I did it:

    sheets

    1. Raw data

    2. Pivot table

    3. Chart data.

     

    1.Create your pivot table and add all the variables you need to the values tab.

    2. In the chart data worksheet, you'll set up the layouts for your graphs: 

         Series    var1   var2  var3 (where series is the data name and var1-3 is the data)

    3. Then in the cell for the variable, simply enter '=' and then click on the total for that variable on your pivotable page - on mine it looks like this:

       =(GETPIVOTDATA("May",Analysis!$A$29))

    4. Then build your chart off of this data. In essense you're stripping out the data you want for the graphs and dropping it a secondary page and then building off of that data. The data will automatically update as your pivot changes and your graphs will automatically update from that.

     

     

    Finally, if it's gonna be used by others, then I 'hide' all the pivot data (font color white with 'white fill').. and my users then simply see the graphs and aren't concerned with the data itself.

     

     

    Not sure if this is what you're trying to do - but it's how I did it - and, well - it's pretty impressive when all 15 graphs recalculate everytime you change your pivot!

     

     

     

     

     

     

     

    • Post Points: 5
Page 1 of 1 (4 items) | RSS
Copyright Excel User Group and the relevant contributors, 2009. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.