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 / combine filter text bo...
Power Apps
Answered

combine filter text box with combo drop down

(0) ShareShare
ReportReport
Posted on by 247

hello all,

 

i have a text box and i am using the below formula to filter data at a DataTable:

SortByColumns(Filter(Helpdesk,( StartsWith(Requestor.DisplayName , FilterBox.Text)) Or (StartsWith(Subject , FilterBox.Text))),"Request_x0020_Date",Descending)

 

i would like also to add at the formula a combobox, any ideas of how the formula should be modified?

 

thank you in advance

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,535 Super User 2026 Season 1 on at

    Is this an addition on top of the current functionality? Also, what is the name of the column you want to filter and what type is it?

  • kouliscon Profile Picture
    247 on at

    yes its an addition to the current functionality and the name of the column is "Status"

     

    thanks

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @kouliscon,

    Based on the issue that you mentioned, do you want to filter the DataTable based on the Combo Box?

    Could you please share a bit more about the scenario, is this Status column a Choice column or Text?

    If it is a Choice, try as below:

    SortByColumns(
     Filter(Helpdesk,( StartsWith(Requestor.DisplayName , FilterBox.Text)) Or
     (StartsWith(Subject , FilterBox.Text)) Or 
     Status.Value=ComboBox1.Selected.Value
     ),
    "Request_x0020_Date",Descending
     )

    If it is a Text, try as below:

    SortByColumns(
     Filter(Helpdesk,( StartsWith(Requestor.DisplayName , FilterBox.Text)) Or
     (StartsWith(Subject , FilterBox.Text)) Or 
     Status=ComboBox1.Selected.Satus
     ),
    "Request_x0020_Date",Descending
     )​

    Regards,

    Qi

  • kouliscon Profile Picture
    247 on at

    thank @v-qiaqi-msft the Choice option works great with only one thing that the combo box (dropdown) will not return any values only if i will input something at the text filter, even if i press the space on the text filter.

     

    any recommendations?

  • kouliscon Profile Picture
    247 on at

    any update on this @v-qiaqi-msft 

    thank you

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @kouliscon,

    Sorry for the late reply. Have you solved your problem?

    Do you mean that the Combo Box display nothing when there is no search text?

    I want to confirm with you that if you want to filter the records using the StartsWith() based on the Combo Box?

    If so, you should use the And(&&) operator rather than the Or(||),please modify as below:

    SortByColumns(
     Filter(Helpdesk,( StartsWith(Requestor.DisplayName , FilterBox.Text) Or
     StartsWith(Subject , FilterBox.Text)) And 
     Status.Value=ComboBox1.Selected.Value
     ),
    "Request_x0020_Date",Descending
     )

    You should make the two StartsWith() as a whole and the Combo Box selected as another part, this formula will display the records based on the Combo Box selected even you have nothing input within the search box.

  • kouliscon Profile Picture
    247 on at

    hello @v-qiaqi-msft  and thanks for the reply.

     

    what i would like is when i input data at the text filter to then filter and return data.

    If the text filter is empty then if i select the combobox to return data.

     

    either way i would like to have the possibility to input to one of the two (filterbox) or (Combobox) and to return data or to input to both and to return values.

     

    let me know if that is clear.

  • kouliscon Profile Picture
    247 on at

    hello @v-qiaqi-msft  do you have any update on my question above?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @kouliscon,

    Sorry for the late reply due to my weekend off.

    Have you tried my solution on your side?

    To achieve the need you mentioned "

    what i would like is when i input data at the text filter to then filter and return data.

    If the text filter is empty then if i select the combobox to return data.", if you only want to filter based on the Combo Box once the text filter is empty, try as below:

     

    If(IsEmpty(SortByColumns(Filter(Helpdesk,( StartsWith(Requestor.DisplayName , FilterBox.Text)) Or (StartsWith(Subject , FilterBox.Text))),"Request_x0020_Date",Descending)),
     Sort(Filter(Helpdesk,Status.Value=ComboBox1.Selected.Value),ID),
     SortByColumns(Filter(Helpdesk,( StartsWith(Requestor.DisplayName , FilterBox.Text)) Or (StartsWith(Subject , FilterBox.Text))),"Request_x0020_Date",Descending)
     )

     

     

  • kouliscon Profile Picture
    247 on at

    hello @v-qiaqi-msft  and thank you for your reply,

     

    maybe i am not very clear,

     

    Capture.PNG

     

    from the picture above what i want is:

     

    • when i input data at 1 to then return data
    • when i select from 2 to then return data
    • if i input data at 1 which will return data and i select something from 2 to then return different data

     

    tried your formula and i didnt work. i have to press "space" at 1 in order for 2 to work after i selected something.

     

    hope is clear

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard