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 / 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
    Microsoft Employee 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
    Microsoft Employee 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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard