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 a gallery fr...
Power Apps
Answered

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard