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 / filtering library items
Power Apps
Unanswered

filtering library items

(0) ShareShare
ReportReport
Posted on by 204

Hi,

 

i'm having a library which consists of folders and files as below structure:

 

level.PNG

 

now i want to filter the items and folders except the level 0 folders i.e. HR,Sales,IT,Marketing except these folders i want to retrieve sub items and folders. 

i've tried something like filter(library,Not(isfolder)) which will only give items but it will not give folders and also using isfolder giving delegation 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Krishna98 

    There are no real folders or subfolders in SharePoint.  This is a trick of the view.  A library is really just a list like any other SharePoint list. In order to mimic a folder hierarchy, SharePoint uses the IsFolder and Folder Path to create this concept.

    As such - all of these columns in SharePoint are "generated" columns and NONE of them are delegable.  So, if your Library is over 2000 items, then you will run into problems.

     

    Now, if it is not, you can use something like this:

    Filter(yourLibrary, CountRows(Split('Folder path', "/"))>2)

    Top level items will have 2 results from the split, so everything bigger than that is lower level.

     

    I hope this is helpful for you.

     

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard