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 / Gallery search with fi...
Power Apps
Answered

Gallery search with filter with two conditions

(0) ShareShare
ReportReport
Posted on by 566

Hello,

i have on a sharepoint document library files named like that:

TGLANP TOGO LOME AFRICA PAGE-(1).jpg

TGLANP TOGO LOME AFRICA PAGE-(2).jpg

TGLANP TOGO LOME AFRICA PAGE-(3).jpg

THBCNP THAILAND BANGKOK ASIA PAGE-(1).jpg

THBCNP THAILAND BANGKOK ASIA PAGE-(2).jpg

On my gallery i have this formula below which filters all TGLANP items:

 

 

Search(Filter(Documents;Chemin="Shared Documents/General/backup/); "TGLANP"; "Fullpath")

 

 

I need to filter "TGLANP" items which contains only "PAGE-(1)" text.

Example of result expected for TGLANP:

TGLANP TOGO LOME AFRICA PAGE-(1).jpg

I tried the formula below but did not worked.

 

 

Search(Filter(Documents;Chemin="Shared Documents/General/backup/); "TGLANP" & "PAGE-(1)"; "Fullpath")

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Sormick ,

    You have two Delegation issues there - neither Search() nor Chemin (Path) are Delegable. If you have more than 500 documents in 'Shared Documents', you will not see the files you need. The file name is also not Delegable, so you will need to add a Text column with the filter/search information.

  • Sormick Profile Picture
    566 on at

    hi @WarrenBelz ,

    I am still not comfortable with delegation

    Chemin is a column Text on my sharepoint library which contains the folder path for each file or folder.

    fullpath is a column Text on my sharepoint library which contains the full path for each file or folder.

    Do i need to add two text columns for TGLANP and ofr PAGE-(1) ?

    What would be my final delegable formula?

     

  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Sormick ,

    Are these Text columns that you have created and populated with the relevant information (I was assuming that they were the built-in columns), we can probably manage that one - assuming you have no more than 500 files in that folder

    With(
     {
     _Data:
     Filter(
     Documents;
     Chemin = "Shared Documents/General/backup/"
     )
     }; 
     Filter(
     _Data;
     "TGLANP" in Fullpath && "PAGE-(1)" in Fullpath
     )
    (

    If you are not comfortable with Delegation, you are going to have a lot of challenges ahead - I have a blog that should be useful in starting your learning on this.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • Sormick Profile Picture
    566 on at

    Hello @WarrenBelz ,

    Thank you so much for the furmula!

    I will never have more than 400 files in my sub-folders. so do not need more at this time.

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard