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 SharePoint List...
Power Apps
Answered

Filter SharePoint List via TextInput box AND/OR a choices dropdown list

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have an app which allows the users to search the sharepoint list for all records. I've added a dropdown (Choices) list so that the user can search based on either just the choice that has been selected from the dropdown or via the choice in the dropdown plus additional criteria entered in a textinput. My current gallery Items code is:

Filter(Installations, 
StartsWith(JobNumber, SharePointSearch_5.Text) ||
StartsWith(CustomerSite, SharePointSearch_5.Text) ||
StartsWith(ID, SharePointSearch_5.Text)
)

 

I wrongly assumed that I could just add another row with the below, can you advise where i've gone wrong please? 

StartsWith(Installations, Installers.Value = Dropdown1.Selected.Value)

Thanks in advance!  

Categories:
I have the same question (0)
  • HectorOlivos Profile Picture
    411 on at

    Hello! 

     

    Can you try with the next code: 

     

    Filter(
     Installations,
     (StartsWith(JobNumber, SharePointSearch_5.Text) ||
     StartsWith(CustomerSite, SharePointSearch_5.Text) ||
     StartsWith(ID, SharePointSearch_5.Text)) &&
     (Dropdown1.Selected.Value = "" || StartsWith(Installers, Dropdown1.Selected.Value))
    )
  • Verified answer
    Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Dave-ITMan ,

     

    Does this help?

    Filter(
     Installations, 
     (
     //Show records even if Text field is blank
     IsBlank(SharePointSearch_5.Text) ||
     StartsWith(JobNumber, SharePointSearch_5.Text) ||
     StartsWith(CustomerSite, SharePointSearch_5.Text) ||
     StartsWith(ID, SharePointSearch_5.Text) 
     ) 
     && (IsBlank(Dropdown1.Selected) || Installers.Value = Dropdown1.Selected.Value)
    )
  • Dave-ITMan Profile Picture
    on at

    Hi @Ethan_R .

     

    Worked perfectly thank you! 

     

    @HectorOlivos thanks for your assistance but that didn't work. 

  • Dave-ITMan Profile Picture
    on at

    Hi @Ethan_R,

     

    I need a slight tweak to this code if you're able to help please? 

     

    If the dropdown box has "Please select an Installer" then that dropdown box should be ignored from the filtering as the user may just want to use the search box instead, any other selection from the drop down should be used to filter the results.

     

    Hopefully that makes sense? 

     

    Thanks in advance

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard