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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering a gallery fr...
Power Apps
Unanswered

Filtering a gallery from two independent text input control?

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a gallery that is filtered from the text within text input control using the following formula. 

 

Filter('Memberships',StartsWith(Postcode,inp_editmember_membership_search.Text)

 

This filter uses the "Post code" column on the SharePoint list that is providing the data.  What I'd like to do is add a second text input control that will allow the user to search on the "Last Name" column.  The idea is that the user can choose which criteria to search on and the gallery will filter on either box.

 

2023-02-23_17-16-32.jpg

 

This is the formula I'm using but only the "Post code" box is working

 

Filter('Angling Memberships',StartsWith(Postcode,inp_editmember_membership_search.Text) Or StartsWith('Last Name',inp_editmember_membership_search_1.Text))

 

Any hints or tips gratefully received.

Categories:
I have the same question (0)
  • Verified answer
    Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Rob_CTL ,

     

    Is this you are trying to achieve?

    Filter(
     'Angling Memberships',
     (IsBlank(inp_editmember_membership_search.Text) || StartsWith(Postcode,inp_editmember_membership_search.Text))
     And 
     (IsBlank(inp_editmember_membership_search_1.Text) || StartsWith('Last Name',inp_editmember_membership_search_1.Text))
    )

     

    Hope this helps

  • Rob_CTL Profile Picture
    on at

    Hi @Ethan_R 


    That's perfect, thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard