Modifying a calculated field in a pivot table

In this lesson you will learn how to modify a calculated field in your pivot table. You need this to make proper calculation which you need at the moment.

Pivot table data preparation

Open sheet with your pivot table and click any cell in the pivot table to get it activated.
calculated field data

Adding a calculated field to pivot table

Go to Analyze tab. Select Fields, Items and Sets button and click Calculated Field.

Enter the formula as per your requirements.

calculated field formula

Excel will display the pivot table with an additional column (sum of discount in this case).

calculated field additional column

Click anywhere in the pivot table. PivotTable Fields appears on the right. Under sum of values, go to sum of quantity and click remove field.

calculated field final result

Modifying a calculated field in pivot table

As you see you have Sum of Discount instead of Sum of Quantity. Now you know how to modify calculated field in Pivot Tables. Use this to make your customized calculations.

Using Calculated Fields to Create Custom Reports

Calculated fields can be used to create custom reports in Excel. This can be useful for businesses that need to track specific data or trends that are not available in the standard pivot table reports.

For example, the following calculated field can be used to create a report that shows the total sales for each product category, as well as the percentage of total sales for each product category:

See also  How To Use SQL Statements In Excel

=SUM(Sales) / SUM(Sales)

This formula works by first calculating the total sales for each product category. Then, it divides the total sales for each product category by the total sales for all product categories. This gives you the percentage of total sales for each product category.

To use this formula, simply enter it into a new calculated field in your pivot table. Then, drag the calculated field to the “Values” area of the pivot table.

This will create a new column in the pivot table that shows the percentage of total sales for each product category.

You can use calculated fields to create custom reports for any type of data in Excel. Simply use the formula that you need to calculate the data that you want to track.