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 : +gmagn5nohF7qwhCu5YvXb
Power Apps - Building Power Apps
Answered

Filtering Gallery with ComboBox - Item Property using Distinct

Like (0) ShareShare
ReportReport
Posted on 29 Feb 2024 03:27:10 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:
I have the same question (0)
  • ITKnowsDracarys Profile Picture
    8 on 29 Feb 2024 at 05:35:10
    Re: Filtering Gallery with ComboBox - Item Property using Distinct

    Mr. WarrenBelz, you are amazing.


    It solve my formula. Thank you.

  • Verified answer
    WarrenBelz Profile Picture
    149,427 Most Valuable Professional on 29 Feb 2024 at 03:58:08
    Re: Filtering Gallery with ComboBox - Item Property using Distinct

    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

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…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete