SharePoint Document Issues

Filter SharePoint Folders Using Item Child Count

Rana GarciaRana Garcia Nov 14, 2026 868 views

Question details

Identify SharePoint document library folders that contain files when Item Child Count cannot be used in a calculated column.

Filter SharePoint Folders Using Item Child Count
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
A user wants to use a folder's Item Child Count to identify folders with or without files.
Observed behavior
Item Child Count is unavailable as a reference in a calculated column.
Before you start

Open the document library and check that you have permission to create or edit views. Confirm that Item Child Count is available as a filter in your library; available view options can vary.

Solution 1Recommended

Create a filtered document library view

Use a view filter to find folders with or without direct child items instead of referencing Item Child Count in a calculated column.

1
Open library settings

In the SharePoint document library, select Settings, then Library settings. Select Create view; if needed, open More library settings first.

2
Create a standard view

Select Standard View and enter a name such as Folders with files.

3
Set the count filter

Under Filter, select Show items only when the following is true. Choose Item Child Count, select is greater than, and enter 0. To look for folders without direct child items, use is equal to 0 instead.

4
Limit results to folders

If Content Type is available as a filter, add an AND condition for Content Type is equal to Folder. Review any custom folder content types separately.

5
Save and open the view

Select OK to save the view, then choose it from the document library's view menu. Navigate into folders as needed to inspect their contents.

Create a filtered document library view
Check what the count includes: The count reflects direct child items, not a recursive count of files in every subfolder. If Item Child Count is not offered in the Filter list, this view-based method is not available in that library.
Free Microsoft Office alternative

Edit Office files with WPS Office

WPS Office is a free, lightweight alternative for editing documents, spreadsheets, and presentations with a familiar interface and compatible Office formats for an easier migration. It does not change SharePoint view or calculated-column settings.

Open and edit files downloaded from a SharePoint document libraryCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXWork in a familiar, easy-to-use interfaceUse a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I select Item Child Count in a calculated column?

SharePoint does not make Item Child Count available as a reference in calculated-column formulas. Use a library view filter instead if the field is available there.

How do I show folders without direct child items?

In the library view settings, set the Item Child Count filter to is equal to 0. Add a Content Type equals Folder condition if that filter is available.

Does Item Child Count include files in nested subfolders?

Do not treat it as a recursive file count. Check each subfolder or use a separate reporting method when you need a total across nested folders.

What if Item Child Count is not available in the view filter?

Open Library settings and edit the view to check the Filter field list. If Item Child Count is not offered, the filter method cannot be configured in that library; consider a separate reporting or automation approach.