Pivot Table Issues

How to Show a Pivot Table Value Only Once for Duplicate Rows

Nimra MalikNimra Malik Nov 11, 2026 870 views

Question details

The user wants to prevent repeated values from inflating totals in a Pivot Table when source data contains duplicate rows.

How to Show a Pivot Table Value Only Once for 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.
Before you start

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.

Solution 1Recommended

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.

1
Select the value field

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.

2
Open Value Field Settings

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...'.

3
Change the summary function

In the Value Field Settings dialog box, under the 'Summarize value field by' tab, scroll through the list and select 'Max', 'Min', or 'Average'.

4
Apply and group by Unique ID

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.

Change Value Field Settings to Max, Min, or Average
Accurate Group Totals: Using Max or Min ensures that no matter how many duplicate rows exist for a single ID, the value displayed at that grouping level is counted only once, maintaining data accuracy.
Manage Data Effortlessly

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. 1. Insert a Pivot Table: Open your dataset in WPS Spreadsheet, navigate to the 'Insert' tab, and click 'PivotTable'.
  2. 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. 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'.
Fully compatible with Microsoft Excel (.xlsx) files and Pivot Table structures.Easily configure Value Field Settings to fix duplicate row calculation errors.Lightweight, fast, and completely free to download and use.Familiar user interface ensuring a zero learning curve for Excel users.
microsoft office alternative - wps office

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.