Search Contextures Sites
After you create a pivot table, you can insert a pivot chart, based on that table. Then, if necessary, you can rearrange the field layout, or change one of the series, to make a combination chart.
After you create a pivot table, you can insert a pivot chart, based on that pivot table. If you need help with creating a pivot chart, follow the instructions here.
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 Layout
When 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 fields into the Column area in the PivotTable Field List.
To move a field, follow these steps:
- Click on the Pivot Chart, to select it.
- In the PivotChart Fields window, drag the OrderYr field from the Axis box (Categories) to the Legend (Series) box.
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..
If you rearrange the fields in a pivot chart layout, the related pivot table changes too. Unfortunately, there’s no setting you can change if you want the pivot chart and pivot table to work independently.
As a workaround, you can create a second pivot table, based on the first one, and arrange it as you’d like. Then, when you change the pivot chart, only the original pivot table is affected.
Put the pivot table that’s connected to the pivot chart on a separate sheet, so it isn't visible. Then, use the second pivot table for printing reports. In the screen shot below, the pivot chart is based on a different pivot table, on the HiddenPT sheet.
Watch this short video, to see an example of this workaround.
Watch this short video, to see how to create a column line pivot chart, with the line on a secondary axis. Written iinstructions are below the video.
Follow these steps to create a combination column line pivot chart, based on an existing pivot table.
Create a Pivot Chart
- Select any cell in the pivot table
- On the Excel Ribbon, click the Insert Tab
- In the Charts group, click Column, then click Clustered Column
- A column chart is inserted on the worksheet, and it is selected -- there are handles showing along the chart's borders.
Change to Combination Chart
- Right-click on the chart, and click Change Chart Type
- In the Change Chart Type window, at the left, select the Combo category.
- At the top of the window, click the Clustered Column - Line on Secondary Axis option
- If you want to change the series that shows a Line, or is on the Secondary Axis, select those settings at the bottom of the window.
- When finished, click OK, to see the modified pivot chart on the worksheet.
Download the sample pivot chart tutorial file
For regular Excel news, tips and videos, please sign up for the Contextures Excel newsletter.
Contextures Inc., Copyright ©2016
All rights reserved.
Last updated: April 11, 2016 4:41 PM