Fix Disabled Calculated Field Options in Excel PivotTables
Question details
The user needs to enable calculated field and calculated item commands in an Excel PivotTable.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to add a calculated field or item to a PivotTable created from the Excel Data Model or another unsupported source.
- Observed behavior
- The Calculated Field and Calculated Item commands are disabled.
Locate the worksheet range or table containing the source data. If the PivotTable uses multiple Data Model tables, determine whether you can combine the required columns into a single worksheet table.
Recreate the PivotTable from a standard Excel range or table
Use this method when the existing PivotTable is based on the Data Model or another source that does not support standard calculated fields.
Calculated Field and Calculated Item are not available for PivotTables based on OLAP sources, including the Excel Data Model. A new PivotTable based on a normal worksheet range or table can provide these commands.
Open the worksheet containing the source data and click a cell in the range or table. If the data comes from a CSV file, import it with Data > Get Data > From File > From Text/CSV and load it to a worksheet table.
With a source cell selected, choose Insert > PivotTable. Confirm that the selected table or range contains the data you need.
In the Create PivotTable dialog, clear Add this data to the Data Model, choose where to place the PivotTable, and click OK.
Click the new PivotTable, then choose PivotTable Analyze > Fields, Items & Sets > Calculated Field. Enter a name and formula, then click OK.

Work with spreadsheet data in WPS Office
WPS Office is a free, lightweight Microsoft Office alternative with a familiar interface. Open compatible Excel workbooks and continue working with spreadsheet data as you migrate between office suites.

Frequently Asked Questions
Why is Calculated Field grayed out in my PivotTable?
The PivotTable may use the Excel Data Model or another OLAP source, which does not support the standard Calculated Field command. Recreate it from a worksheet range or table without selecting Add this data to the Data Model.
Can I add calculations without leaving the Data Model?
Yes. For a Data Model PivotTable, you can create a DAX measure instead of a standard calculated field. If Power Pivot is available, open Power Pivot > Manage to work with the model.
Where is the Calculated Field command in Excel?
Click inside a supported PivotTable, then select PivotTable Analyze > Fields, Items & Sets > Calculated Field.
Can I use a CSV file as the source for a calculated field?
Yes. Import the CSV through Data > Get Data > From File > From Text/CSV, load it to a worksheet table, and create a PivotTable from that table without adding it to the Data Model.




