web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to use Combobox or...
Power Apps
Answered

How to use Combobox or Dropdown to select items to search in gallery

(0) ShareShare
ReportReport
Posted on by 12

My SharePoint list name is 'IUR'

The 'Platform' column is a Choice type.

Platform
P1
P2
P3
P4

The 'Platform' data type shows [record] in Power Apps.

 

I want to add a search(or filter) function for my gallery, use the multi-select to choose items in 'Platform', and show results in the gallery.

I use Combobox to make the dropdown list. It can show P1, P2, P3, P4 correctly.

   >> Combobox1 Items = Distinct(IUR, Platform).

 

Bit I got the error when I used the Search function in the gallery.

   >> Gallery  Items = Search(IUR, ComboBox1.SelectedItems)

 

How do I fix this?

Should I use Combobox or Dropdown?

 

Thank You.

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

    Hi @JerryTsai ,

     

    I am assuming that platform column is single selection and combo box is multiple selection.

    Please try this:

    Items of combo box:

    Choices([@IUR].Platform)

    Items of Gallery:

    If(IsEmpty(ComboBox1.SelectedItems),IUR,Filter(IUR,Platform.Value in ComboBox1.SelectedItems.Value))

     

    Best regards,

    Rimmon

  • JerryTsai Profile Picture
    12 on at

    Hi Rimmon,

     

    It works! you are the best! 

     

    I have one more question, and hoping you could help.

    Can I add another combobox2 to select a different Column 'State' in the same SharePoint 'IUR', and filter with combobox1 at the same time?

    How do I edit the Items of Gallery?

     

    Thank You.

  • Verified answer
    v-mengmli-msft Profile Picture
    on at

    Hi @JerryTsai ,

     

    What is type of state column?

    I am assuming that it is a choice column and combo box2 is also multiple selection.

    Please try this:

    If(IsEmpty(ComboBox2.SelectedItems),If(IsEmpty(ComboBox1.SelectedItems),IUR,Filter(IUR,Platform.Value in ComboBox1.SelectedItems.Value)),Filter(If(IsEmpty(ComboBox1.SelectedItems),IUR,Filter(IUR,Platform.Value in ComboBox1.SelectedItems.Value)),State.Value in ComboBox2.SelectedItems.Value))

     

    Best regards,

    Rimmon

  • JerryTsai Profile Picture
    12 on at

    @v-mengmli-msft I'm new to Power Apps. Your answer is Excellent! 

    Even if it's not easy for me, I can study it.

     

    Love this community!

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard