Fix Maximum Value Errors in an Excel Data Model PivotTable
Question details
The user needs to calculate the maximum value of a field 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.
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.
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.
In Excel, select Power Pivot > Manage to open the Power Pivot window.
In the Power Pivot window, select the table containing the field, then click the column header.
On the Home tab, use the Data Type menu to select Whole Number or Decimal Number, as appropriate for the values.
Return to Excel, right-click the PivotTable and select Refresh. Open the field's Value Field Settings and select Max.

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.

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.




