How to Display a Specific Value Instead of a PivotTable Sum
Question details
The user wants to display a specific value from their source data instead of the default aggregated sum in a PivotTable.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Customizing PivotTable data display to show an exact value or specific result instead of the default total sum.
- Observed behavior
- The PivotTable automatically defaults to displaying the sum of values, preventing the user from viewing a specific targeted value like the first value above a total.
Ensure your source data is organized in a proper tabular format without blank rows or columns, and identify the exact logic needed to extract your specific value before modifying the PivotTable settings.
Use a Calculated Field to Return a Specific Value
Create a custom formula within the PivotTable to evaluate and display the exact value you need instead of the standard sum.
If you need a specific value based on conditions, a calculated field allows you to write a custom formula. Keep in mind that calculated fields operate on the sum of the underlying data, so this method works best when the formula logic applies correctly to aggregated totals.
Click any cell inside your existing PivotTable to reveal the PivotTable Tools menu on the top ribbon.
Navigate to the 'Options' or 'Analyze' tab, click on 'Fields, Items, & Sets', and select 'Calculated Field' from the dropdown menu.
In the Insert Calculated Field dialog box, provide a name for your new field. In the Formula box, enter your specific formula (for example, using IF statements) to return the desired value.
Click 'Add' and then 'OK'. The new field will automatically be added to the Values area of your PivotTable, displaying the result of your custom formula.

Change the Value Field Settings
If the specific value you need happens to be the maximum, minimum, or average of a dataset, you can change the aggregation type directly.
Manage PivotTables Effortlessly in WPS Spreadsheet
WPS Office offers robust and intuitive PivotTable features, allowing you to easily insert calculated fields, adjust value settings, and analyze your data without hassle.
- 1. Open Data: Open your dataset in WPS Spreadsheet.
- 2. Insert PivotTable: Select 'Insert' from the top menu, then click 'PivotTable' to generate a new report.
- 3. Access PivotTable Tools: Navigate to the 'Options' tab under the PivotTable Tools ribbon.
- 4. Insert Calculated Field: Select 'Calculated Field' to input your custom formula and display the exact specific value required.

Frequently Asked Questions
Why does my PivotTable always default to Sum?
By default, PivotTables aggregate numeric data using the Sum function and text/blank data using the Count function. You can change this default behavior at any time using the Value Field Settings.
Can I use VLOOKUP inside a PivotTable calculated field?
No, PivotTable calculated fields do not support standard worksheet lookup functions like VLOOKUP or INDEX/MATCH. They only support basic arithmetic and simple logical functions (like IF) based on the aggregated field values.
Why is my calculated field showing the wrong total?
Calculated fields perform their formula on the aggregated total of the underlying data, not on a row-by-row basis. This can cause grand totals or subtotals to appear incorrect, especially if your formula involves multiplication or division.
How can I show the first or last value of a category in a PivotTable?
Standard PivotTables do not have a 'First' or 'Last' aggregation function. To achieve this, you typically need to add a helper column to your source data to flag the first value, or use advanced Data Model (Power Pivot) capabilities to write a DAX measure.




