+ Reply to Thread
Results 1 to 9 of 9

Pivot chart overlay multiple horizontal axes

  1. #1
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Pivot chart overlay multiple horizontal axes

    Aaaaannnnnnndddddyyyyyyy...

    Ahem, I mean, "hi all,"

    Is it possible to split the series of a pivot chart so they can be shown as overlays on the same criteria sets? Effectively creating a new horizontal axis for each series.

    I've attached an 'beautiful' drawing which explains what I'm trying to achieve.

    The route I have been wrestling with is to create a calculated field based on adding an arbitrary offset to one series over another based on the name of the series - but I'm struggling to make it work. I think, if I did make it work, I would then have serious problems changing my pivot field settings to % of row, % of column etc. - but I can't be sure!

    CC
    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,482
    Manipulation of pivot charts is very limited as it simply displays the data from the PT.

    I assume you are currently able to achieve the chart from left hand side of your wonderful sketch? If so then I assume the X axis is a Time series axis. What happens if you change the axis to category?

    The usual way to create non standard pivot charts is to create a stand alone chart based on pivot table data.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Hi Andy,

    Thanks for replying.

    In order:
    Unk, yeh, I know

    That's right (and thanks!) Yes it is a time series. Change the x axis to category? Like swap the time series and category 'order'? (which interleaves series 1 & 2) I think I misunderstand you here.

    Yes, this is my typical response but I need to retain the flexibility of the pivot table and I'd need macros to make sufficiently flexible pivot table mirrors - I'm looking for a more general solution.



    I'm able to get calculated fields along the lines of =if(<data item>=x,y,z) to work, but have been completely unable to get =if(rowfield(x)="string",y,z) to work. Is this possible?


    CC

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Aha!

    I have added a calculated Item to the series field which adds an offset to one of the other items. (i.e. calcitem=item(x)+100)

    I then move the field from rows to columns, then choose not to display the original item.

    The only thing I'd like to add would be something along the lines of calcitem=item(x)+(1.1*(max(item(y)) but the max only operates on one item at a time, so the offset is not constant.

    I feel like a computer running out of RAM.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    Not sure if this will help.

    I created additional fields in the data source.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    I'm not sure, but as I understand it, this won't work if there is more than one entry for any row item, as the "offset" would be added for every iteration of the category.

    Am I talking crazy talk?

    CC

    PS what relics of an old project are left hidden in the VBA there Andy?
    Attached Files Attached Files
    Last edited by Cheeky Charlie; 11-26-2008 at 11:34 AM.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    If you change the ptable columns to be ID rather than year then you will get a 3rd line, well point actual.

    You may need to adjust the formula to be based on ID rather than year.

    =C2+((A2-1)*MAX($C$2:$C$26))

    Test code for this thread was left by mistake,
    http://www.excelforum.com/excel-prog...bed-panel.html

  8. #8
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Rather than use up attachment limit space, please see revised attachment above.

    What if the row field has two identical lines apart from a differentiator which is not used in the pivot. Changing the adjusted count formula to account for the potential variations would be impossible (surely?!).

    Creating a calculated item in the year pivot field has the same problem.


  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    I can't think of a formula that will return maximum of the sumation of a month.

    But I'm sure somebody else could.

    Failing that you could create a table of lookup offset values.

    But the problem of formatting the Y axis for each series remains. The scale current displays the cummlative value rather than the actual value.

+ 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