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 / Filter only Folders wi...
Power Apps
Answered

Filter only Folders with the Filter command

(0) ShareShare
ReportReport
Posted on by 8

Greetings,

 

I have a PowerApps that filters the content of a SharePoint List using it's metadata.

Right now, all the files contained in the folders share the same metadata, which makes them show repeated on the serach.

 

Is there any way of filtering only Folders with the Filter command?

 

 

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @JoanRuiz ,

     

    Do you mean you want to filter the sharepoint list Items inside the Folder?

    You can try to filter by the Folder Path. Please see the example:

    Snipaste_2020-05-28_14-05-48.png

    Hope this helps.

    Sik

  • JoanRuiz Profile Picture
    8 on at

    Hi Sik, not exactly that, the Filter function is already filtering the content of a library, showing every file and folder on it. I would like the Filter function to delete all the files from the Search and only show the Folders, as the metadata from the files contained in the folder are the same, let me show you an example of how it works now:

     

     

    I would like to add another "And" that makes it so the result only shows Folders

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

    Hi @JoanRuiz ,

     

    Maybe you can try to filter the list by IsFolder column.

    Filter('Share Point', IsFolder)

    Then, the gallery only shows all folders.

    Sik

     

  • JoanRuiz Profile Picture
    8 on at

    Hi @v-siky-msft 

     

    Thanks for you help! I finally was able to use the IsFolder option (ÉsCarpeta, in my language) but I am having another issue, every single file in the library appears with IsFolder active, the ID44 has 4 different kind of files(Images, words, etc) but in the Apps, all of them show as Folders:

     

    image.png

     

    Is there any workaround for this issue?

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

    Hi @JoanRuiz ,

     

    Could you please share more about your scenario? What is the Items property of Gallery?

    I don't have such issue you mentioned, it works well in my test. please check the following screenshot, only folders show the IsFolder true.

    Snipaste_2020-05-29_10-19-03.png

    Sik

  • JoanRuiz Profile Picture
    8 on at

    Hi Sik,

     

    Here is the isFolder option field on my form:

     

     image.png

     

    And here in the filter you can see that all of the items are showing the EsCarpeta boolean as Yes, even tho the last one is a file:

     

    AllFolders.png

     
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @JoanRuiz ,

     

    Yes, It seems to be bug with check box for IsFolder column in Data Table.

    You can switch the Control Type to Text Column, then it can show the correct value in IsFolder column.

    Snipaste_2020-06-01_09-45-36.png

    Hope this helps.

    Sik

  • reibalboaOMG Profile Picture
    9 on at

    hi all i have a problem, my data sources is files and folders, (Filter(Documents,'Folder path' = varFolderPath) ) so its folders and subfolders but at the same time i need a search bar from textbox, (Filter(Documents, StartsWith('File name with extension', searchbox.Text))) how can i combine the two filters in 1 combobox

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard