+ Reply to Thread
Results 1 to 6 of 6

Totals in Pivot Chart -finding a workaround

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    Brighton, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Totals in Pivot Chart -finding a workaround

    Hi everyone

    I've got a number of pivot charts which I have been asked to add totals into.

    It is monitoring number of requests for shifts in healthcare, comparing bank (in house) to agency (external).

    The bosses want to see the combined total on the line graph I've produced, as well as the separate figures.



    I can't seem to find a definitive answer on how to achieve this... I can't just turn it into a regular graph as it still requires the drop-down menu functionality to compare different hospitals etc.

    The pivot table is constructed using COUNT of a field called Total Hours, to see how many individual shift requests there were per date. Each of these shifts is either BANK or AGENCY in one of the columns.


    I think the key would be to somehow add another column in the raw data and process that somehow so as to be able to include the sum in the pivot? But I can't think how to do it :S


    Any help greatly appreciated guys

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Totals in Pivot Chart -finding a workaround

    Hello,

    welcome to the forum.

    It would help immensely if you could supply a sample file with a sample chart. Make it small. No need for thousands of data rows. Replace confidential data with dummy text, like Hobbit names, if you want.

    Then explain in the context of the sample file what you would like to achieve.


    cheers, teylyn

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    Brighton, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Totals in Pivot Chart -finding a workaround

    Hi teylyn/everyone

    Sorry to only just reply, I was on leave.

    I've bodged together a sample database exactly the same as the one I use.


    So in the context of the sample graph - i want to add a 3rd line, which is a summation of the other two.

    Hope that is clear!
    Attached Files Attached Files

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Totals in Pivot Chart -finding a workaround

    I think the simplest solution would be to change the chart type to a stacked line, and then add data labels if necessary to indicate the actual values for each point.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    08-13-2013
    Location
    Brighton, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Totals in Pivot Chart -finding a workaround

    Thanks Romperstomper, I had a go at that, but these people are rather particular and will want 3 separate lines specifically...

    I suspect that a column must be added in the raw data, I tried one with just a code in it (common to all rows) hoping that would act as a marker for counting all the rows, but this did not work - due to the pivot table layout this just duplicated the data

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Totals in Pivot Chart -finding a workaround

    If you hadn't grouped the dates, you could use a calculated item (assuming you really do only have a few animal types, or whatever the real data is) but otherwise you could just explain to them that pivot charts don't work that way (by design!).

    If it's absolutely essential, you can add the data series again (so you have two counts for each animal) and plot the second two counts on a secondary Y axis as a stacked line. Once you adjust the Y axis scale to match the primary, one of the stacked lines will simply overlap the first line on the primary axis so you will only see three lines. You can then delete the two additional legend entries.
    Last edited by romperstomper; 08-20-2013 at 10:45 AM.

+ 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. How to display totals in a pivot chart
    By calmena in forum Excel General
    Replies: 0
    Last Post: 02-14-2011, 01:19 PM
  2. Grand Totals in Pivot Chart 2007
    By lizriv in forum Excel General
    Replies: 1
    Last Post: 12-07-2009, 03:16 PM
  3. Can I conditionally format pivot chart totals?
    By thestappa in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-05-2009, 08:09 AM
  4. Plotting totals in a pivot chart
    By excelaspire0219 in forum Excel General
    Replies: 0
    Last Post: 04-08-2009, 10:24 AM
  5. [SOLVED] display grand totals on pivot chart
    By maryj in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-16-2005, 02:06 PM

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