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

- 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.
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.
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.
In the SharePoint document library, select Settings, then Library settings. Select Create view; if needed, open More library settings first.
Select Standard View and enter a name such as Folders with files.
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.
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.
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.

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.

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.




