Display Groups in View with 0 Count

Copper Contributor

Hello! I will start off by stating I am not a programmer by nature, just someone who gets involved in everything and learns as much as possible.  I am developing a Sharepoint Library (Modern View) and I am building a custom default view for when a particular Document Set is opened.  For this view, I would like the documents to be grouped based on the value of a particular column "Document Group".  This column is required for the document set and is a "choice" type with 7 options.  I have set up the view to do exactly that but what I would like, is that all 7 groups be visible when any document set is opened, even if there are 0 documents with that particular column value.


I used JSON to remove the column name from the Header but am unsure how to display groups with a zero count.

Anyone have any ideas?

3 Replies

Hi @mcmichael13 ,

You could create seven new views. Every view just displays all documents that match one of your options.

Then you could create a new modern site page and add seven list webparts to it. In every webpart you select a different view.

Best Regards,

For some more context, this is an example of one of the "Project Document Sets":


The full list of choices include:
1. Design & Pre-Bid Documents
2. Bid Documents
7. Aftermarket & Service Documents


In the case of the above picture I would like each of the available choices displayed, even though there aren't any files tagged with those choices, yet.

The reason for this is so that when someone needs to upload a bunch of documents at once, they can drag and drop them into the correct "Document Group" without having to add them and then edit that column for the appropriate data.

It allows those (which is the majority of the company) who are very familiar with folder hierarchy to have a similar feel with the additional benefit of the document set functionality.

As a temporary solution I will probably have a Power Automate routine create 7 files titled "Placeholder - Can Be Deleted" each tagged with one of the choices.  That way, all of them will display.



As an update, I created the power automate to create a file for each, which will serve the purpose until I can find a better way.