[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
   [Expand]Product Information
    Product Structure
    Getting Started
   [Expand]Spreadsheet Document
    Supported Formats
   [Expand]Cell Basics
   [Expand]Spreadsheet Formulas
    Defined Names
    Data Binding
    Data Validation
   [Expand]Data Presentation
    Data Grouping
   [Expand]Pivot Table Overview
   [Expand]Charting Overview
   [Expand]Mail Merge Overview
    Find and Replace
   [Collapse]Visual Elements
    [Expand]Cells and Cell Ranges
     Rows and Columns
     Name Box
     Pop-Up Menus
      Format Cells Dialog
      Paste Special Dialog
      Edit Hyperlink Dialog
      Symbol Dialog
      Create Table Dialog
      Change Chart Type Dialog
      Find and Replace Dialog
      Encrypt Document Dialog
      Password Dialog
      Protect Workbook Dialog
      Protect Sheet Dialog
      User Permissions Dialog
      Insert Function Dialog
      Function Arguments Dialog
      Name Manager
      New Name Dialog
      Create Names from Selection Dialog
      Subtotal Dialog
      Data Validation Dialog
      Properties Dialog
      Page Setup Dialog
      Header and Footer Dialog
      Create PivotTable Dialog
      Move PivotTable Dialog
      Change PivotTable Data Source Dialog
      PivotTable Field List
      PivotTable Field Settings Dialog
      PivotTable Value Field Settings Dialog
      PivotTable Sort Dialog
      Insert Calculated Field Dialog
      Insert Calculated Item Dialog
      PivotTable Solve Order Dialog
      PivotTable Options Dialog
      New Formatting Rule Dialog
      Conditional Formatting Rules Manager
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Insert Calculated Field Dialog

The Insert Calculated Field dialog allows end-users to add new calculated fields to the Pivot Table, as well as modify or remove the existing ones.

End-users can invoke this dialog by clicking the Calculated Field... item in the Fields, Items, & Sets drop-down menu. Add the Calculations ribbon group to enable this menu (see the Getting Started topic for details on how to provide a Ribbon UI for the SpreadsheetControl).

In the Insert Calculated Field dialog's Name and Formula boxes, end-users can specify the name (PivotField.Name) and formula (PivotField.Formula) for a new calculated field.
The formula can contain constants and references to other fields in the PivotTable report. End-users can select the desired field in the Fields list and click the Insert Field button to include a field reference in the formula.

Clicking the Add button adds the new field to the data area of the PivotTable report.

End-users can modify the existing calculated field by selecting the desired field in the Name drop-down list and changing its formula. The calculated field's name cannot be edited from the dialog.

Clicking the Delete button removes the selected calculated field.


Call one of the PivotCalculatedFieldCollection.Add method overloads to create a calculated field using the Spreadsheet API. Refer to the How to: Create a Calculated Field example for more details.

Expanded See Also

Is this topic helpful?​​​​​​​