Group items in a PivotTable
You can group items in a field in a custom way to help you isolate a subset of data that satisfies your own individual needs, and that cannot be easily grouped in other ways, such as sorting and filtering.
Notes:
- You cannot group items for Online Analytical Processing (OLAP) source data that does not support the CREATE SESSION CUBE statement.
- You cannot add a calculated item to a grouped field. You must first ungroup the items, add the calculated item, and then regroup the items.
Group numeric items
- Select the numeric field in the PivotTable report that you want to group.
- On the
Optionstab, in theGroupgroup, clickGroup Field. - In the
Starting atbox, enter the first item to group. - In the
Ending atbox, enter the last item to group. - In the
Bybox, type a number that represents the interval included in each group.
Group dates or times
- Select the date or time field in the PivotTable report that you want to group.
- On the
Optionstab, in theGroupgroup, clickGroup Field. - Enter the first date or time to group in the
Starting atbox, and enter the last date or time to group in theEnding atbox. - In the
Bybox, click one or more time periods for the groups.To group items by weeks, click
Daysin theBybox, make sure thatDaysis the only time period selected, and then click7in theNumber of daysbox. You can then click additional time periods to group by, such asMonth, if you want.
Group selected items
- Select the items in the PivotTable report that you want to group, either by clicking and dragging, or by holding down CTRL or SHIFT while you click.
- On the
Optionstab, in theGroupgroup, clickGroup Selection.
Note For fields organized in levels, you can only group items that all have the same next-level item. For example, if the field has levels Country and City, you can't group cities from different countries.
Ungroup items
- Select the items that you want to ungroup.
- On the
Optionstab, in theGroupgroup, clickUngroup.For a group selection, only the selected items are ungrouped. For a numeric or date and time field, all groups for the field are ungrouped.
![]()