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 gallery by sear...
Power Apps
Answered

Filter gallery by search, dropdown and condition

(1) ShareShare
ReportReport
Posted on by 407

Hi, I am trying to filter this gallery by a jobnumber, e.g. go into a jobnumber and the gallery only shows entries that match that jobnumber. The jobnumber field in the gallery is ThisItem.Title and i have a label on the screen Label179 that displays the jobnumber. Need the gallery to filter (ThisItem.Title)=label179.Text  (ThisItem.Title is the jobnumber in the gallery and Label179  is the jobnumber it needs to be filtered by)

 

I currently have the gallery filtered where they can select the jobnumber from the search but would the like to have it default before any selections to show only the jobnumber relevent to the screen they are on. Just need to get this at the beginning of the syntax - (ThisItem.Title)=label179.Text

 

Search(Filter(ExternalCollect,Len(Dropdown5.Selected.Value)=0 || ListType.Value=Dropdown5.Selected.Value),
TextInput4.Text, "Title","Part_Name")

 

I am using a sharepoint list as the datasource. Any assistance would be much appreciated 

Categories:
  • Verified answer
    Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Matt383 ,

     

    Does this help?

    Search(
     Filter(
     ExternalCollect,
     Len(Dropdown5.Selected.Value) = 0 || ListType.Value = Dropdown5.Selected.Value,
     (IsBlank(label179.Text) || Title = label179.Text)
     ),
     TextInput4.Text,
     "Title",
     "Part_Name"
    )
  • Matt383 Profile Picture
    407 on at

    Hi Ethan_R, I was trying to put the syntax at the start. This is exactly what i was chasing, thank 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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard