Home > Pivot > Charts > Pivot Chart How to Change a Pivot ChartAfter you create a pivot table in Microsoft Excel, you can insert a pivot chart, based on that table. Then, if necessary, you can rearrange the field layout, apply filters, or change one of the series, to make a combination column line chart. Create a dynamic chart title based on a pivot table report filter. |
Pivot Chart LayoutAfter you create a pivot table, you can insert a pivot chart, based on that pivot table.
In this example, the chart shows sales data, per city, over two years. At first, all the chart columns are the same color, because there is only one series. To create columns with different colours, the field arrangement is changed. Watch this short video, to see the steps. |
Change the Pivot Chart LayoutWhen the chart was created, the Year and Region fields were both in the Rows area. The chart had only one series, so all the columns were the same color. To create columns with different colors, move one of the field names into the Column area in the PivotTable Field List. To move a field, follow these steps:
That creates a series for each year, and shows one year in blue, and the other in orange. In the next screen shot, the City field has been moved to the Legend (Series) box, with OrderYr remaining in the Axis (Categories) box. That creates a series for each city, and shows city's columns in a different color.. |
Create and Filter Pivot ChartsIn this video you can see how to create and filter an Excel pivot chart, by using the field buttons that are on the chart. There are written steps, and a full transcrips, below the video. Video TranscriptIf you'd like to read the video transcript, click on the green check box below. When you're finished, you can click the check box again, to hide the transcript Video Transcript: Use Field Buttons to Filter Pivot ChartPivot charts have improved in Excel 2010 and I'm going to show you the new filtering feature which is much easier than it was in Excel 2007. Insert Pivot ChartTo insert a pivot chart, I'm selecting a cell in the pivot table. And then, on the Ribbon, under Pivot Table Tools, I'll click Options. And in the Tools group, click PivotChart I'm going to select a Column chart type And the first one here, which is the Clustered Column And click OK That inserts a chart right on the active worksheet. I can point to one of the corners of the chart and make it a bit smaller Filter Pivot ChartAnd to filter now, I can use any of the field buttons, that are on the chart. So if I only want to see a specific product or date, then I can click the arrow and filter right in the pivot chart. So perhaps I just want to see April 7th And that filters both the chart and the pivot table. Remove Pivot Chart FiltersTo remove the filters, I can go back, and click All And that shows all the data again. Show or Hide Field ButtonsThere's also a setting on the Ribbon, if you go to PivotChart Tools, and click Analyze. There is a Field Buttons setting, that you can show or hide specific buttons, that are on the chart, or hide all of them. |
How to Filter Pivot ChartAfter you create a pivot chart, you can use the chart's field buttons to filter the data that the chart displays. To apply a pivot chart filter, follow these steps:
|
Show or Hide Field Buttons on Pivot ChartFor some pivot charts, you might want to remove some, or all of the field buttons.
To toggle the pivot chart field buttons between the Hide and Show settings, follow these steps:
Types of Pivot Chart Field ButtonsThere are four different types of field buttons for pivot charts:
This screen shot shows the four field button types in an example pivot chart. Show/Hide Specific Field ButtonsTo show/hide specific field buttons, click the bottom part of the Field Buttons command, which has a drop down arrow. The drop down menu opens, and the following field button options are listed:
Change Field Button settingSome of the field button settings might have a check mark, and some might not.
To change a field button setting:
|
Chart Title from Report FilterInstead of adding a static title to your Pivot Chart, use a worksheet formula to create a dynamic chart title. Watch this video to see how to set up the formula, and then link the chart title to the formula cell. Download the sample file in the next section, to follow along with the video. The written steps are below the video. Video Timeline
|
Pivot Table With Report FilterIn this example, there is a pivot table that shows quantities sold over 2 years, in four different food categories.
In the steps below the screen shot, you'll see how to:
Create a Pivot ChartTo create a pivot chart from the food sales pivot table, follow these steps:
A pivot chart is added to the worksheet, showing the 2 years of data. Add a Chart TitleThere’s no title on the chart, so follow these steps to add a title:
|
Move the Chart TitleA generic title was added to the pivot chart, with the text “Chart Title”. You'll change the title later, so it shows the region name. For now, you'll just move the title to a better location in the chart.
Pivot Table Region FilterThere are four regions in the food sales data – East, West, Central and South. First, check that the “Select Multiple Items” option is turned on, so you can select one or more of the regions. Then, based on what you selected in the Report Filter, cell C2 will show one of these results:
In the screenshot below, Central was selected in the Region filter, and its name appears in cell C2. Chart Title Text OptionsInstead of typing a new chart title in the Title box, you can create a chart title formula, in a cell on the worksheet. That formula will help you build a dynamic chart title, that will show details on what was selected in the Region filter. In this example the formula will create a chart title that:
Here is the Region information that should appear in the pivot chart title:
Create the FormulaTo check for those 3 Report Filter options, you’ll build a nested IF formula.
Enter the following formula in cell G2 (I’ve added line breaks, so it’s easier to read):
That formula starts with the text string =”Annual Sales — ”
|
Format and Move Formula CellNext, you can follow the steps below, to make the formula result look like a worksheet title.
Link Chart Title to Formula CellThe final step is to link the pivot chart title to the formula cell. Follow these steps to do this final step:
The pivot chart title now shows the result of the formula in cell G1. |
Test the Pivot Chart TitleTo make sure that the formula is working correctly, make a few changes with the Region Report Filter:
Next, select (All) in the Region Report Filter, to show data for all the regions. The chart title should change to “Annual Sales – All Regions”. Final TouchesTo make the pivot chart look even better, you can add a couple of final touches:
Then, follow these steps to hide some or all of the field buttons:
Then, move the Chart Title and Legend, if necessary, so they fit in the blank space above the columns in the chart plot area. Tip: You could also add a Pivot Table Slicer for the Region field, so it's easy for people to select a region. Leave the Region field in the Report Filter area too, so the formula can get the information from that cell. |
Get the Sample FilePivot Chart Title: To follow along with the Pivot Chart Title video, download the sample pivot chart tutorial file. The sample file contains the completed formula and pivot chart. You can delete those, and build your own. The zipped Excel file is in xlsx format, and does not contain any macros. |
More Pivot Table Tutorials |
Last updated: April 25, 2023 3:41 PM