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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Data Table Filtering with search field and Dropdown

(0) ShareShare
ReportReport
Posted on by 229

I have a data field that I want to filter using a search Textbox and a dropdown. I have been testing a lot of different formulas but I cant get it to work right. I have these three formals that work independently but I need to combine them. 

 

Sort('Expense App List New',RequestedBy,Ascending)

Filter('Expense App List New',StartsWith(RequestedBy,Tech_Name_Search_TextInput1.Text))

Filter('Expense App List New',ItemStatus = Filter_Item_Status_Dropdown1.Selected.Value)

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Data Table Filtering with search field and Dropdown

    @Chrisguff12 

     

    Sort(
     Filter(
     'Expense App List New',IsBlank(Tech_Name_Search_TextInput1.Text)||
     StartsWith(RequestedBy,Tech_Name_Search_TextInput1.Text) &&
     ItemStatus = Filter_Item_Status_Dropdown1.Selected.Value
     ),
     RequestedBy,Ascending
    )
    

    If you wanted to see the entire datasource you could add a blank value to the status dropdown and filter the table this way.

    Sort(
     Filter(
     'Expense App List New',IsBlank(Tech_Name_Search_TextInput1.Text)||
     StartsWith(RequestedBy,Tech_Name_Search_TextInput1.Text) &&
     IsBlank(Filter_Item_Status_Dropdown1.Selected.Value||
     ItemStatus = Filter_Item_Status_Dropdown1.Selected.Value
     ),
     RequestedBy,Ascending
    )

     

  • Chrisguff12 Profile Picture
    229 on at
    Re: Data Table Filtering with search field and Dropdown

    @Drrickryp 

     

    Hey tried your formula. I don't get any errors but when I start typing in the Search box the records disappear and none of the results show up.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Data Table Filtering with search field and Dropdown

    @Chrisguff12 
    I think there may be a problem with the starts with.  Could you check if this is OK?  It will give a delegation warning but you can ignore it for now.  I'm troubleshooting here.

     

    Sort(
     Filter(
     'Expense App List New',IsBlank(Tech_Name_Search_TextInput1.Text)||
     Tech_Name_Search_TextInput1.Text in RequestedBy,
     IsBlank(Filter_Item_Status_Dropdown1.Selected.Value||
     ItemStatus = Filter_Item_Status_Dropdown1.Selected.Value
     ),
     RequestedBy,Ascending
    )

     

     

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Data Table Filtering with search field and Dropdown

    @Chrisguff12 

    I think I found the problem there shouldn't be an && it should be a comma

     

    Sort(
     Filter(
     'Expense App List New',IsBlank(Tech_Name_Search_TextInput1.Text)||
     StartsWith(RequestedBy,Tech_Name_Search_TextInput1.Text),
     IsBlank(Filter_Item_Status_Dropdown1.Selected.Value||
     ItemStatus = Filter_Item_Status_Dropdown1.Selected.Value
     ),

     

    a typo on my part.choking.gif

     

     

     

  • Verified answer
    Chrisguff12 Profile Picture
    229 on at
    Re: Data Table Filtering with search field and Dropdown

    @Drrickryp 

     

    This work beautifully, but you had one typo. There was a missing ) after the the first dropdown string. Can you edit it then I will mark your post as the solution?

     

    I was having an issue until I realized I needed set "AllowEmptySelection" for the dropdown.

     

    Sort(
     Filter(
     'Expense App List New',IsBlank(Tech_Name_Search_TextInput1.Text)||
     StartsWith(RequestedBy,Tech_Name_Search_TextInput1.Text),
     IsBlank(Filter_Item_Status_Dropdown1.Selected.Value)||
     ItemStatus = Filter_Item_Status_Dropdown1.Selected.Value
     ),
     RequestedBy,Ascending
    )

     

    Thanks for you help again. 

  • Chrisguff12 Profile Picture
    229 on at
    Re: Data Table Filtering with search field and Dropdown

    For anyone looking to filter out certain values I continued working on this formula on this thread.

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Filtering-out-records-with-certain-values/td-p/875485

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard