Pivot Table Issues

Fix Maximum Value Errors in an Excel Data Model PivotTable

Phi Hung VoPhi Hung Vo Nov 27, 2026 870 views

Question details

The user needs to calculate the maximum value of a field in an Excel Data Model PivotTable.

Fix Maximum Value Errors in an Excel Data Model PivotTable
Product
Microsoft Excel Data Model PivotTable
Device & OS
not provided
Scenario
A PivotTable uses a Data Model field that should contain numeric values.
Observed behavior
Excel treats the field as text and offers Count instead of calculations such as Max, Min, or Sum.
Before you start

Check that the affected column contains numeric values rather than mixed text and numbers. Confirm that your Excel edition supports Power Pivot and that the Power Pivot tab is available.

Solution 1Recommended

Change the Data Model field to a numeric type

Use this method when the field is defined as text in the Data Model and Excel only offers Count.

1
Open the Data Model

In Excel, select Power Pivot > Manage to open the Power Pivot window.

2
Select the affected column

In the Power Pivot window, select the table containing the field, then click the column header.

3
Set a numeric data type

On the Home tab, use the Data Type menu to select Whole Number or Decimal Number, as appropriate for the values.

4
Refresh and select Max

Return to Excel, right-click the PivotTable and select Refresh. Open the field's Value Field Settings and select Max.

Change the Data Model field to a numeric type
Check conversion errors: If the column contains values that cannot be converted to numbers, correct them in the source data or query, then refresh the Data Model and try again.
Free Microsoft Office alternative

Work with spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for an easier transition. WPS Spreadsheets can help you work with numeric data and PivotTables, but it does not fix Excel's Data Model settings.

Analyze numeric spreadsheet data with PivotTablesOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork in a lightweight office suite for free
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Data Model PivotTable only show Count?

The field may be defined as text in the Data Model. Open Power Pivot > Manage, select the column, and check its Data Type on the Home tab.

How do I change Count to Max in the PivotTable?

After ensuring the Data Model field has a numeric type, refresh the PivotTable. Open the field's Value Field Settings and select Max.

What if Excel cannot convert the field to a number?

Check the source column or query for nonnumeric entries and correct them. Refresh the Data Model, then try setting the column to Whole Number or Decimal Number again.

What if I don't see the Power Pivot tab?

Check whether your Excel edition supports Power Pivot. If it does, look under File > Options > Add-ins, choose COM Add-ins, and enable Microsoft Power Pivot for Excel.