Fix Excel Data Model PivotTable Grouping Errors
Question details
The user needs to group items in a PivotTable connected to the Excel Data Model.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user is building a PivotTable report from the Data Model and wants to group its items.
- Observed behavior
- Excel displays “Cannot group that selection” in the Data Model PivotTable, although grouping may work in a standard PivotTable.
Check whether the PivotTable uses the Data Model and identify the field you want to group. Decide whether your report needs Data Model relationships or measures before replacing it with a standard PivotTable.
Create a standard Excel PivotTable without the Data Model
Use a standard PivotTable when the report can be built from a single worksheet table or range.
Click any cell in the worksheet table or select the range that contains the data for the report.
Select Insert > PivotTable. In the creation dialog, leave “Add this data to the Data Model” unchecked, then choose where to place the PivotTable and select OK.
Add the relevant field to the PivotTable, right-click an item in that field, and select Group. Choose the available grouping options and select OK.

Add a grouping column to the Power Pivot model
Use a calculated column when the report must retain its Data Model relationships or measures.
Explore spreadsheet reports with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheet files. Open existing workbooks and create reports in WPS Spreadsheets for an easier transition, though it does not fix Excel Data Model grouping limitations.

Frequently Asked Questions
Why can't I group items in my Data Model PivotTable?
Excel does not support direct grouping of items in a PivotTable created from the Data Model. Use a standard PivotTable or add a grouping column to the source data or model.
Will a standard PivotTable keep my Data Model measures?
No. A standard PivotTable built from a worksheet range does not retain Data Model measures or relationships. If you need them, add a grouping column in Power Pivot or the source data instead.
How can I group Data Model dates by year?
In Power Pivot > Manage, add a calculated column such as =YEAR([OrderDate]), using your date column's name. Refresh the PivotTable and add the new column to Rows or Columns.
Why does grouping still fail in a standard PivotTable?
Check the source field for unsuitable entries. For example, blank or text values in a date field can prevent date grouping. Correct the source data, then select PivotTable Analyze > Refresh and try Group again.




