How to Remove Column Names and Counts From Grouped SharePoint Views
Question details
The user wants to customize SharePoint grouped list and library views to hide the default grouping column names and the total item counts.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Organizing and customizing the visual layout of grouped lists and document libraries in SharePoint.
- Observed behavior
- SharePoint normally displays the grouping column name and the exact item count in brackets, such as 'Category: Bananas (7)', with no out-of-the-box setting to hide them.
Modifying default SharePoint list views to hide specific group headers requires basic knowledge of JSON view formatting, as standard list settings do not offer a simple toggle switch for this feature.
Use JSON View Formatting to Hide Group Details
Apply custom JSON code to your list view to override the default group header display and remove the column name and item count.
Because SharePoint lacks an out-of-the-box setting to disable group names and counts, utilizing the built-in JSON View Formatting feature is the recommended workaround. This allows you to specifically target the 'groupProps' header and render only the data value.
Open the specific SharePoint list or document library where you have applied the grouped view.
Click the View Options dropdown menu located in the top-right corner of the list, then select 'Format current view'.
In the formatting pane that appears on the right side of your screen, click on 'Advanced mode' at the bottom.
Paste a custom JSON configuration that targets the group header to display only the @group.fieldData variable. Click 'Save' to apply the changes to your view.

Submit a Request to the Microsoft Q&A Community
Seek alternative development strategies or submit official feedback if JSON formatting does not meet your organization's needs.
Looking for a Lightweight Office Suite? Try WPS Office
While you are managing and customizing your SharePoint lists online, consider WPS Office for handling your daily document creation and editing needs locally. WPS Office is a highly compatible, cost-effective alternative to traditional office suites.
- 1. Download the installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the suite: Run the setup file and follow the on-screen instructions to install WPS Office on your computer.
- 3. Open and edit files: Launch WPS Office and instantly open your existing .docx, .xlsx, or .pptx files without any format conversion.

Frequently Asked Questions
Is there a simple settings toggle to hide the item count in SharePoint lists?
No, SharePoint does not currently provide a native out-of-the-box toggle switch in the List Settings to hide the grouping column name or the item count. You must use JSON view formatting to achieve this.
Can I hide the item count but keep the column name visible?
Yes. By customizing the JSON view formatting code, you have granular control over what elements are displayed in the group header. You can configure it to show the column name while omitting the count variable.
Will applying JSON formatting alter the underlying data in my SharePoint list?
No. JSON view formatting only modifies how the data is visually presented within the browser. It does not alter the actual list data, permissions, or structural integrity of your SharePoint environment.




