+ Reply to Thread
Results 1 to 4 of 4

Show total for pie chart from a pivot table in title

  1. #1
    Registered User
    Join Date
    03-08-2016
    Location
    San Diego, California
    MS-Off Ver
    2013
    Posts
    26

    Show total for pie chart from a pivot table in title

    Hi,

    I have a pivot chart that is a pie chart from a pivot table that has sums of multiple fields. So, I want to be able to put the total either in the title after the name or somewhere in the chart.

    For example, I have the names in the column (6 names so 6 columns). The rows for my pivot table are the sum of each source (15 rows total). I created a filter using another pivot chart and slicers to filter by name. So when I choose a name, I see in my pie chart the number of each source. So, say I filter for John Smith. The pie chart will only show John Smith and only the sum of the sources under him. So lets say, website is 7 and board is 3 and search is 5. I want the total (15) to show up on the pie chart either in the title after the name (John Smith - 15) or somewhere on the chart.

    Sorry for the terribly long explanation. I am not even sure if this is possible for a pivot chart.

    As always, your help and suggestions are greatly appreciated.

    Thank you!

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

    Re: Show total for pie chart from a pivot table in title

    The title for any chart can either be a static string, or you can read the value from a cell.

    So let's assume that the name you are looking for is in the pivot table filter in cell B2 and the total value you want is in cell F6. Then in some convenient cell, let's say H1, enter the formula =B2 & Char(10) & "Total = " & F6. The Char (10) is a line break so the chart title will have the name and total underneath it.

    Select the existing title. Go up to the formula bar and type in =H1 (or whatever cell contains your title).
    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
    03-08-2016
    Location
    San Diego, California
    MS-Off Ver
    2013
    Posts
    26

    Re: Show total for pie chart from a pivot table in title

    Thank you for your help.

    In addition to your answer, if the grand total cell is calculated in the pivot table, you cannot reference that cell. To reference the grand total, I had to click on the cell below it, then make that cell = the grand total cell (=GETPIVOTDATA("Sum of #",$F$2)). Then I did your method using this cell (F22).

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

    Re: Show total for pie chart from a pivot table in title

    This formula might work for you (depending on how your pivot table is laid out)

    INDEX ($A$1:$F$100, MATCH("Grand Total",$A$1:$A$100,0),6)

    This formula assumes that the pivot table is contained within the first 100 rows, and that the words "Grand Total" is in Column A and that the actual value is in Column F.

+ 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. Pivot table - how to show percentage of total?
    By GoldbergJesse in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-19-2015, 03:31 PM
  2. [SOLVED] Pivot Table - Show total value those more than or equal to 2
    By Shermaine2010 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-25-2015, 10:43 PM
  3. Show main title in chart table
    By sarinky in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-05-2015, 09:33 AM
  4. Replies: 3
    Last Post: 07-30-2014, 07:09 PM
  5. Can a Pivot table show % to total by multi row labels?
    By juniperjacobs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2011, 03:37 PM
  6. Is there way to make a pivot table not show lines where a total is zero?
    By DanMinalt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2009, 10:38 PM
  7. How do I show the Grand Total on a Pivot Chart?
    By Scott_F in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-26-2005, 12: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