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 a combination of the original data. For example, you might need to add, subtract, multiply, or divide the original values before using them. At that point, you need to build a calculated field and set the corresponding formula for calculation, then perform some statistics and other operations on the calculated field.
Insert a calculated field in a PivotTable in Excel by following these steps:


Add a calculated field to an Excel file using Aspose.Cells for Python via .NET. 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.