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 / PowerApps Search and F...
Power Apps
Answered

PowerApps Search and Filter

(0) ShareShare
ReportReport
Posted on by 995

I'm a newbie and developing a Canvas Powerapps on a SharePoint.  I have a Search box that is searching a DataTable (My SharePoint list items), I want to have a Filter option that when the Drop="less than" what is entered in the Text Input box, it will then filter the Search results.  I had a slider, but want to use the Dropdown/Textbox combo instead.  Is there someplace that has examples of Sort(Search(Filter on the Dropdown/texbox combo?

Thanks

Kim

Categories:
  • eka24 Profile Picture
    20,925 on at

    Try

    Filter (Search(Datasource,Searchbox.Text,"ColumnForTheSearch"),ColumnInDropdwn=DropdownName.Selected.Value)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • kmw1130 Profile Picture
    995 on at

    Thank you for your reply, I think I need an IF statement, maybe something like this

     

    Search (Filter(DataSource,ListField(

    IF dropdown = "Under" < InputTextBox

      ELSE dropdown = "Above" > InputTextBox), inputSearchBox.Text,"Title")

    Does that make sense?

     

  • eka24 Profile Picture
    20,925 on at

    Did you try the formula I gave. Are filtering a Gallery? With dropdown you don't need ant if statement. Whatever you select in the dropdown will automatically be filtered.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • kmw1130 Profile Picture
    995 on at

    The dropdown is either Under or Over and then there is a input text box for the value and separate search box for the other fields.

  • kmw1130 Profile Picture
    995 on at

    This is what my Search Form so far:

     
    Search_form.png
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @kmw1130 :

    Do you want to change the filter rule according to the choice of dropdown?

    I suggest to judge the result of dropdown first, and then filter.

    Please try this code:

     

    Switch(Dropdown.SelectedText.Value,
    "Under",
    Search (Filter(DataSource,ListField< InputTextBox), inputSearchBox.Text,"Title")
    "Above",
    Search (Filter(DataSource,ListField> InputTextBox), inputSearchBox.Text,"Title")
    )

     

    I think this link will help you a lot:

     If and Switch functions in Power Apps

    Best Regards,

    Bof

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard