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 Apps
Answered

Add searchbar

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Capture.PNG

I currently have one search working and a dropdown. How can I integrate another searchbar in this code. The searchbar is called searchbar and I want it to filter by name. Additionally, how can I add an all feature to the dropdown because once you set it to something you can;t see all of the functional sources again.

If(
IsBlank(Dropdown1.SelectedText.Value),
Filter(
CCB,
StartsWith('Requirement Source',Filter.Text)
), Filter(
CCB,
StartsWith('Requirement Source',Filter.Text),
'Functional Area' in Dropdown1.SelectedText.Value
)
)

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share more details about the formula you typed within the Items property of the Dropdown1?

    Do you want to add another Search bar filter into your existing Filter formula?

    Further, do you want to add a "All" feature to the Dropdown box to let you choose "All" feature?

     

    If you want to add another Search bar filter into your existing Filter formula, please consider modify your formula as below:

     

    Filter(
     CCB,
     If(
     IsBlank(Dropdown1.SelectedText.Value),
     true,
     'Functional Area' in Dropdown1.SelectedText.Value
     ),
     If(
     IsBlank(Filter.Text),
     true,
     StartsWith('Requirement Source',Filter.Text)
     ),
     If( // Add formula here
     IsBlank(Searchbar.Text),
     true,
     StartsWith(Name, Searchbar.Text)
     )
    )

     

     

    If you want to add a "All" feature into your Dropdown1, I think you could consider add a ComboBox control in your app to list available options rather than Dropdown control (that you added). Then type some formula within the Items property of the ComboBox as that in your original Dropdown control. Set the SelectMultiple property of the ComboBox to false. Then the default value within the ComboBox would be blank, you could select or deselect option from the ComboBox.

    Then you need to modify above Filter formula as below:

     

    Filter(
     CCB,
     If(
     IsBlank(ComboBox1.Selected.Value), // Modify formula here
     true,
     'Functional Area' in ComboBox1.Selected.Value
     ),
     If(
     IsBlank(Filter.Text),
     true,
     StartsWith('Requirement Source',Filter.Text)
     ),
     If( // Add formula here
     IsBlank(Searchbar.Text),
     true,
     StartsWith(Name, Searchbar.Text)
     )
    )

     

    Within above Filter formula, it would check if the ComboBox selection is Blank, if true, it would not do any Filter operation against your 'Functional Area' column (in other words, it would retrieve all available 'Functional Area' value records), if not, it would filter your 'Functional Area' column value based on the selected ComboBox option.

     

    Please consider take a try with above solution, hope it helps in your scenario.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, I want all to be a choice in the dropdown. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-xida-msft I tried the second one and it says that the function isBlank has invalid arguments.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share more details about your error message?

    Is the error message related to the ComboBox1.Selected.Value?

     

    Please note that the .Value within the ComboBox1.Selected.Value represents the Display column value within your ComboBox. On your side, you may need to modify your formula as below:

    Filter(
     CCB,
     If(
     IsBlank(ComboBox1.Selected.DisplayColumn), // Modify formula here
     true,
     ComboBox1.Selected.DisplayColumn in 'Functional Area'
     ),
     If(
     IsBlank(Filter.Text),
     true,
     StartsWith('Requirement Source',Filter.Text)
     ),
     If( // Add formula here
     IsBlank(Searchbar.Text),
     true,
     StartsWith(Name, Searchbar.Text)
     )
    )

    Note: Make sure you have set the SelectMultiple property of the ComboBox to false, so you could only select single one option from your ComboBox once time.

     

    If you set the Items property of your ComboBox to a Distinct(...) formula, you should modify above formula as below:

    Filter(
     CCB,
     If(
     IsBlank(ComboBox1.Selected.Result), // Modify formula here
     true,
     ComboBox1.Selected.Result in 'Functional Area'
     ),
     If(
     IsBlank(Filter.Text),
     true,
     StartsWith('Requirement Source',Filter.Text)
     ),
     If( // Add formula here
     IsBlank(Searchbar.Text),
     true,
     StartsWith(Name, Searchbar.Text)
     )
    )

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

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
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard