
Here are the steps to add a Pivot Table Calculated Field: Suppose you have a Pivot Table as shown below and you want to calculate the profit margin for each retailer: Let’s see how to add a Pivot Table Calculated Field in an existing Pivot Table. For example, if the metrics change or you need to change the calculation, you can easily do that from the Pivot Table itself.Īdding a Calculated Field to the Pivot Table Once you add a Calculate Field, you can use it like any other field in your Pivot Table.
It’s scalable as it will automatically account for any new data that you may add to your Pivot Table. It doesn’t require you to handle formulas or update source data. There are a lot of benefits of using a Pivot Table Calculated Field (as we will see in a minute): Consider Calculated Field as a virtual column that you have added using the existing columns from the Pivot Table. This is the most efficient way to use existing Pivot Table data and calculate the desired metric. But when I changed it from customers to regions, the formula gave an error. As shown below, I calculated the Profit Margin when there were retailers in the row. But if you change the Pivot table, the calculation may not update accordingly and might give you the wrong results or errors. This can be an option if your Pivot Table structure is unlikely to change. Add calculations outside the Pivot Table. This method also bloats your Pivot Table as you’re adding new data to it. Again you will have to add this column to your source data and then update the pivot table. For example, you may need to add another column to calculate the average sale per unit (Sales/Quantity). While this method is a possibility, you would need to manually go back to the data set and make the calculations. Once you do this, you need to update the source data of the Pivot Table to get this new column as a part of it. So you can insert a new column in the source data and calculate the profit margin in it. Go back to the original data set and add this new data point. Now, what if you also want to know what was the profit margin of these retailers (where the profit margin is ‘Profit’ divided by ‘Sales’). The above Pivot Table summarizes the sales and profit values for the retailers. Suppose you have a dataset of retailers and you create a Pivot Table as shown below: Let’s start with a basic example of a Pivot Table. How to Get a List of All the Calculated Field Formulas?ĭownload the dataset and follow along. How to Modify or Delete a Pivot Table Calculated Field?.
An Issue With Pivot Table Calculated Fields. Adding a Calculated Field to the Pivot Table. What is a Pivot Table Calculated Field?.