Showing results for 
Search instead for 
Did you mean: 
lui Helper III
Helper III

Count number of items in a document library

Team, i have a document library associated to a form. I want to be able to display in a text label the number of times/documents inside a subfolder. 

For example, if the document library is named: MasterFiles

the subfolders are

  • Drafts
  • Finals


What would the formula be if i want to see how many files/documents have been uploaded inside Drafts and Finals.

Thanks in advance

Community Support
Community Support

Re: Count number of items in a document library

Hi @lui ,


Please try this, I hardcode the library and subfolder name, you can fit it to your app.

CountRows(Filter(MasterFiles,StartsWith('Folder path',"MasterFiles/Drafts")))

Best regards,


Helpful resources

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,832)