How to Show a Pivot Table Value Only Once for Duplicate Rows
Question details
The user wants to prevent repeated values from inflating totals in a Pivot Table when source data contains duplicate rows.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Summarizing data in a Pivot Table where multiple rows share the same unique ID and identical associated values (e.g., overtime hours).
- Observed behavior
- The Pivot Table automatically sums all the repeated values for duplicate rows, resulting in an incorrect, inflated total instead of displaying the value a single time.
Ensure your source data includes a clear unique identifier column (such as an Employee ID or Transaction ID) so the Pivot Table can properly group the duplicate rows together.
Change Value Field Settings to Max, Min, or Average
Modify the aggregation method of your data field so that identical values within a grouped ID are returned as a single value rather than being added together.
By default, Pivot Tables will sum numeric fields. When multiple rows share the same unique ID and identical value amounts, summing them duplicates the data. Changing the calculation to Maximum, Minimum, or Average solves this because the Max or Min of identical numbers is simply the number itself.
Click anywhere inside your existing Pivot Table. In the PivotTable Fields pane on the right side of the screen, locate the 'Values' area at the bottom right.
Click on the specific field that is causing the duplicate summation (e.g., 'Sum of Overtime'). From the dropdown menu that appears, select 'Value Field Settings...'.
In the Value Field Settings dialog box, under the 'Summarize value field by' tab, scroll through the list and select 'Max', 'Min', or 'Average'.
Click 'OK'. Ensure your Pivot Table 'Rows' area contains your unique identifier so the data is grouped correctly. The repeated values will now only display once per ID.

Create and Manage Pivot Tables Seamlessly with WPS Spreadsheet
WPS Spreadsheet offers a robust set of data analysis tools, making it easy to build Pivot Tables, adjust aggregation methods, and filter out duplicate data. It provides an intuitive interface that simplifies complex data operations.
- 1. Insert a Pivot Table: Open your dataset in WPS Spreadsheet, navigate to the 'Insert' tab, and click 'PivotTable'.
- 2. Arrange your fields: Drag your unique identifier column into the 'Rows' box and the data you want to display into the 'Values' box.
- 3. Adjust to Max/Min: Left-click the item in the 'Values' box, select 'Value Field Settings', and switch the aggregation from 'Sum' to 'Max' or 'Average'.

Frequently Asked Questions
Can I just remove duplicates from my source data instead?
Yes. If the duplicate rows are entirely unnecessary, you can highlight your source data, go to the Data tab, and click 'Remove Duplicates'. However, if those rows contain other unique data that you still need in your Pivot Table, modifying the Value Field Settings is the recommended approach.
Why does my Pivot Table always default to 'Sum'?
Spreadsheet software automatically defaults to 'Sum' when the inserted data field consists purely of numeric values. If the column contains text or blank cells, it will default to 'Count'. You must manually change this behavior via Value Field Settings.
Will changing the field to 'Max' fix my Grand Total?
Changing the aggregation to 'Max' works perfectly for individual grouping levels, but the Grand Total row will calculate the 'Max' of the entire column, not the sum of those individual max values. To get a sum of maximum values, you would need to add a helper column to your source data to filter out duplicates before pulling them into the Pivot Table.




