+ Reply to Thread
Results 1 to 6 of 6

Dynamic Chart Series for Pivot Table

  1. #1
    Registered User
    Join Date
    01-22-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Dynamic Chart Series for Pivot Table

    I use pivot table and X-Y Scatter plot for analysis of data. Is it possible for scatter plot to select the chart series automatically, as I select the different pivot table fields?

    I use x values as the 'Row Field', and Y values with 'Data Items'. And 'Column Field' as a different series. (Please check first figure [pivot.jpg])

    Is it possible to write a macro which automatically plots
    column field - as Series Name
    Row field - as X values
    data items - as Y values

    (I have figured out how to plot X-Y Scatter plot for Pivot table, which is generally not allowed.)

    Consequently, Is it possible to do that same if there are more than one column fields? (Check Figure 2 [pivot2.jpg])

    I have worked with excel macros in the past. But for this particular problem, I am not able to come up with any logic so far. So, please help.

    I hope that I have explained the problem clearly. Thanks.
    Attached Images Attached Images

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Dynamic Chart Series for Pivot Table

    It may help if you posted example workbook rather than pictures
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-22-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Dynamic Chart Series for Pivot Table

    Here is the attached sample file. Sorry for putting only pictures. Thanks.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Dynamic Chart Series for Pivot Table

    Right click the sheet tab and add this code

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-22-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Dynamic Chart Series for Pivot Table

    Thank you so much Andy.

    Just one more question.

    When we have more than one 1 columnfields (for example, Pressure and Diameter), Is it possible for series names to be like

    pressure 1 diameter 1
    Pressure 1 diameter 2
    pressure 2 diamater 1
    Pressure 2 diameter 2

    (I usually remove columns with subtotals from field setting --> subtotals --> none)

    I am attaching the excel sheet with updated graph. Once again, thanks a lot.
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Dynamic Chart Series for Pivot Table

    Try this,

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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