web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Count number of items ...
Power Apps
Unanswered

Count number of items in a document library

(0) ShareShare
ReportReport
Posted on by 178

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

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    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,

    Sik

  • nirn1 Profile Picture
    4 on at

    Hi @lui ,

     

    Please try

    CountRows(Filter('LibraryName',"Draft" in 'Folder Path'))

    CountRows(Filter('LibraryName',"Final" in 'Folder Path')) in 2 different labels.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard