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 gallery by text...
Power Apps
Answered

Filter gallery by text and combobox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Filter( 'Devices', StartsWith( 'Number', TextSearchBox1.Text ) || StartsWith( 'Type'.Value, TextSearchBox1.Text ) ), 'Software'.Value in ComboBox1.SelectedItems.Value )

The data is stored in a sharepoint list. When I only use the text search box to filter the gallery it will work correctly but I cannot get it to work when I add in the combobox.

 

Any insight as to what I could be doing wrong and how to correct it is apprectiated. Thanks

I have a gallery I am attempting to search by text search box then an optional combobox. The gallery contains a list of devices and the searchbox can filter the list by the device's serial number or device type then the combobox can filter the devices based on their software.

 

I currently have the following as my code but nothing gets displayed in the gallery.

Filter( 
Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    2 filters are not required here

     

    try

    Filter(
    'Devices',
    (StartsWith(
    'Number',
    TextSearchBox1.Text
    ) || StartsWith(
    'Type'.Value,
    TextSearchBox1.Text
    )) && 'Software'.Value in ComboBox1.SelectedItems.Value
    )

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for the help, your suggestion helped. I needed to add that into a switch statement to cover the case where the combobox value was blank.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard