Create a Goal Line on an Excel PivotTable Chart
Question details
Create a chart that compares office averages with a constant goal line.

- Product
- Microsoft Excel PivotTable and PivotChart
- Device & OS
- not provided
- Scenario
- An office report needs to display averages by office alongside a shared target.
- Observed behavior
- The desired chart shows office averages as columns and the same target as a horizontal line across all offices.
Check that the source data includes an office field and a numeric field to average. Choose the goal value and confirm it should be the same for every office.
Create a combination chart from PivotTable results
Use a regular chart linked to PivotTable results when Excel does not offer a combination chart for a PivotChart.
A regular combination chart can use PivotTable results while displaying one series as columns and another as a line. PivotCharts do not support all chart types and combinations available to regular charts.
Select the source data and choose Insert > PivotTable. Drag Office to Rows and the numeric field to Values, then open Value Field Settings and select Average.
In a separate worksheet range, add headers for Office, Average, and Goal. Link the Office and Average cells to the corresponding PivotTable results, and enter the same numeric goal for each office.
Select the separate data range, including its headers, and choose Insert > Combo Chart > Create Custom Combo Chart.
In the combination chart settings, set Average to Clustered Column and Goal to Line, then select OK. Format the Goal series as needed using Format Data Series.
Use Data > Refresh All when the source data changes. If offices are added or removed, update the separate chart data range and its links to match.

Compare office averages with a goal in WPS Spreadsheet
Use WPS Spreadsheet to summarize office results, add a constant target, and create a combination chart with columns and a goal line.
- 1. Open the workbook: Open WPS Spreadsheet and use File > Open to select your Excel workbook.
- 2. Summarize office data: Select the source data and use Insert > PivotTable. Add Office to the row area and the numeric field to the values area, then set its summary to Average.
- 3. Prepare chart data: Create a separate range with Office, Average, and Goal columns. Link the first two columns to the PivotTable results and enter the same goal value for each office.
- 4. Create the chart: Select the separate range and use Insert > Chart to choose a combination chart. Set Average as columns and Goal as a line, then apply the chart.

Frequently Asked Questions
Why does my goal change when I add more records?
If the goal field is summarized by Sum or Count, its result can change with the number of records. In the PivotTable, open Value Field Settings for the goal and select Min or Max when each source row has the same goal.
Can I add a line series directly to an Excel PivotChart?
Excel PivotCharts do not support every regular chart type or combination. If the Combo option is unavailable, create a separate range linked to the PivotTable and use Insert > Combo Chart to make a regular chart.
How do I keep the goal line horizontal?
Enter the same numeric goal for every office in the chart data range, and set the Goal series to Line in the combination chart settings.
Will the chart update when the PivotTable changes?
Linked values in the chart data range update when their referenced PivotTable cells change. Use Data > Refresh All to refresh the PivotTable, and adjust the chart data range if offices are added or removed.




