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 choi...
Power Apps
Answered

Filter gallery by choices combobox

(0) ShareShare
ReportReport
Posted on by 40

I'm trying to filter my gallery using a combobox which fetches choices from a Sharepoint list.

 

My combobox "Items" field is - Choices('*sharepointlistname*'.*choicescolumn)

This displays all of the available choices just fine in the combox itself.

 

Can anybody help me filter my gallery to the selected value of the above combobox, please?

 

Thanks in advance

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hazza 

    Please consider your Items Formula to be the following:

    Filter(yourSharePointList, ChoicesColumn.Value = yourCombobox.Selected.Value)

     

    I hope this is helpful for you.

  • Hazza Profile Picture
    40 on at

    Hi @RandyHayes 

     

    Thanks for your quick response,

     

    I've tried this before, but when trying this formula I always get a red squiggly under the equals sign

     

    Hazza_0-1640213791433.png

     

    Any ideas?

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hazza 

    How is the Vehicle column defined in your list?

  • Hazza Profile Picture
    40 on at

    @RandyHayes 

    The column was simply created by clicking > Add Column > Choice > *Naming the column and adding the choices*.

     

    Nothing else bespoke was applied to this column

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hazza 

    If you go into the List Settings for the list and then click on the Vehicle column. Check to see if the "Display choices using:" is set to "Drop-Down Menu" and not to "Checkboxes"

    RandyHayes_0-1640214896823.png

     

  • Hazza Profile Picture
    40 on at

    @RandyHayes 

    OK, so i've caught up with you now. Sorry, I'm still learning....

    So this column needs to be a checkbox/multiple choice. Sometimes we need to use more than one vehicle.

     

    If I change the Display Choice to "Drop Down", it breaks one of my other gallery body fields - 

     

    Concat(ThisItem.Vehicle.Value, Concatenate(Text(Value),", "))

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Hazza,

    Have you solved your problem?

    Do you have a Choice column allowing multi select and you want to filter gallery based on multi select Combo Box?

     

    If so, please the set the Items property of the Gallery as below:

    Filter(
     Actions,// Here is my list name
     "yes" in ForAll(
     ComboBox9.SelectedItems,
     If(
     Value in TestCHoice.Value,// Here is my Choice column
     "yes",
     "no"
     )
     )
     )

    vqiaqimsft_0-1640588261936.png

     

     

     

  • Hazza Profile Picture
    40 on at

    This worked great, 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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard