+ Reply to Thread
Results 1 to 3 of 3

Remove data from Pivot Graph

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    3

    Remove data from Pivot Graph

    I have a data set with customers, and the fields:

    - CustomerNumber
    - Category

    They can be category: none, Gold or Platinum.

    I need a pivot graph that shows the % of Gold and Platinum customers, and not showing the "none" value.
    But, I don't know how to remove the "none" part from the data, but they should count as a base line for %.

    This is what i get (with % Running of total in):
    Gold - 50%
    Platinum - 20%
    none - 30%

    For the pivot TABLE, that's fine. But not in a line graph, it should stop at 70% (50+20) and not go to 100%.

    Help

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Remove data from Pivot Graph

    This proposal employs formulas rather than a pivot table and pivot chart.
    I assume that the issue you are having is similar to the pivot chart on the left of the attached file. I don't know of a way to make it display as you want because when "None" is removed as a category then the percentages reflect only Gold and Platinum.
    The summary range on the right uses the following formulas.
    For Category: =IFERROR(INDEX(Table1[Category],MATCH(0,INDEX(COUNTIF(K$2:K2,Table1[Category]),,),)),"")
    For % Running Total: =IF(K3="","",SUM(L2,COUNTIFS(Table1[Category],K3)/COUNTA(Table1[Category])))
    Note that the raw data in columns A:B is an Excel table so that the references to the Category column will change automatically as the table is expanded/contracted. (test by selecting cell B11 > press the Tab key > put a category into cell B12).
    Note that "None" is not selected in the Horizontal Axis Labels area of the Select Data Source dialog box.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Remove data from Pivot Graph

    In the PivotTable, replace the "None" under Category with spacebar " ". In the PivotChart, right-click on the "None" column (if you are using the Column Chart) and select No Fill and No Outline.

    Show Only Selected Categories in Chart.png

+ 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. Replies: 4
    Last Post: 02-19-2018, 06:34 AM
  2. Replies: 2
    Last Post: 08-29-2011, 12:29 PM
  3. How to remove null values in a data table below a graph
    By Exceluser123456 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-26-2011, 10:55 AM
  4. How to add data to Pivot graph?
    By tkuia in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-01-2009, 09:51 AM
  5. Remove old data from pivot
    By manny_cb in forum Excel General
    Replies: 1
    Last Post: 07-14-2008, 10:13 AM
  6. Remove #N/A data from graph
    By cokee33 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2008, 10:11 AM
  7. [SOLVED] How do i get data labes to appear on graph in pivot tables
    By Rosa Campos in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-09-2006, 02:40 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