Calculated Fields
Swipe to show menu
Every field in the PivotTable Fields panel comes directly from a column in the source data. A calculated field is different — it is a new metric you define inside the pivot table itself, built by combining existing fields with a formula. It has no column in the source data and never modifies it. It exists only in the analysis layer, behaves like any other value field, and recalculates automatically as the pivot table layout changes.
Creating the Commission calculated field:
- Set up the pivot table with Salesperson in Rows and Revenue in Values. This gives you total revenue per salesperson as the starting point.
- Click anywhere inside the pivot table. Go to PivotTable Analyze tab → Fields, Items & Sets → Calculated Field.
- In the dialog, type a name in the Name field — e.g.
Commission. Clear the Formula field, then click Revenue in the fields list and click Insert Field. It appears in the formula as=Revenue. - Complete the formula by typing
*0.05after the field name. The formula should read=Revenue*0.05. Click OK. - A new Sum of Commission column appears in the pivot table. If values are blank, go to PivotTable Analyze → Refresh. The field now appears in the Fields panel alongside the original fields.
When you rearrange the pivot table — changing Rows from Salesperson to Category, or adding Store to Columns — the calculated field recalculates automatically to match the new view. The formula stays the same; the numbers change to reflect whatever grouping is currently active.
Multiple pivot tables built from the same source data share a pivot cache. Editing or deleting a calculated field affects every pivot table connected to that cache — not just the one you are looking at. Plan calculated fields carefully in workbooks with multiple pivot tables.
Editing and Removing Calculated Fields
-
Rename or change the formula
Open the Calculated Field dialog, select the field from the Name dropdown, edit the name or formula, then click Modify (not OK — clicking OK creates a duplicate). The change applies to every pivot table sharing the same cache.
PivotTable Analyze → Fields, Items & Sets → Calculated Field → select field → edit → Modify
-
Shared cache warning
If other pivot tables in the same workbook use the same source data, they share a pivot cache. Modifying a calculated field here changes it everywhere. If you need different versions of the same metric, build them in separate workbooks or rename them distinctly.
-
Delete a calculated field
Select the field from the Name dropdown and click Delete. The field disappears from the pivot table and the Fields panel. The source data is completely unaffected — only the derived metric is removed from the analysis layer.
PivotTable Analyze → Fields, Items & Sets → Calculated Field → select field → Delete
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat