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 / Filtering Gallery with...
Power Apps
Answered

Filtering Gallery with ComboBox - Item Property using Distinct

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I am trying to filter my Gallery using a ComboBox with an Item Property,

Distinct('Vehicle Maintenance List', Ownership.Value)

And on my Gallery Item Property,
Filter('Vehicle Maintenance List', Ownership.Value = ComboBox1.Selected.Value ,StartsWith('PLATE NUMBER', TextInput2_1.Text))

What is happening is that the filtering using the ComboBox is working, but the items on the gallery will only show if I have selected a choice in my ComboBox.

My need is that even I am not selecting a choice in my ComboBox is that ALL the ITEMS on my Gallery is showing.
How can I do that? Thank you and best regards.

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @ITKnowsDracarys ,

    Try

    Filter(
     'Vehicle Maintenance List', 
     (
     Ownership.Value = ComboBox1.Selected.Value ||
     Len(ComboBox1.Selected.Value) = 0
     ) &&
     StartsWith(
     'PLATE NUMBER', 
     TextInput2_1.Text
     )
    )

    Also set the Default of TextInput2_1 to “” (empty string)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • ITKnowsDracarys Profile Picture
    8 on at

    Mr. WarrenBelz, you are amazing.


    It solve my formula. Thank you.

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

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard