Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When you create a pivot table based on known data, you may find that the data in it is not what you want. The data you need is often a combination of the original data. For example, you might need to add, subtract, multiply, or divide the original data to obtain the desired values. In such cases, you need to create a calculated field and set the corresponding formula for the calculation. Then you can perform statistics and other operations on the calculated field.
Insert a calculated field in a PivotTable in Excel, follow these steps:


Add a calculated field to an Excel file using Aspose.Cells. Please see the following sample code. After executing the example code, a pivot table with a calculated field is added to the worksheet.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.