You can calculate and summarize data in a PivotTable by placing fields in the "Values" area and choosing the aggregation function (e.g., Sum, Average, Count) for those fields.
Example Code:
1. In the PivotTable Fields pane, drag the field you want to summarize into the "Values" area.
2. Click the drop-down arrow next to the field in the "Values" area and select the aggregation function (e.g., Sum or Average).