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

Filtering multiple galleries

(0) ShareShare
ReportReport
Posted on by 111

Hey everyone, I want to filter multiple galleries but im not sure how to write the code for it. 

 

The image bellow is what I want to be able to filter, it can be one of 5 choices or it can be multiple of them in one record, so 2+. I want it to be filtered for example, I choose "HR" I want the records that have only "HR" AND the ones that have "HR" among other ones. 

Valentino1_0-1707200076320.png

 

In the image below is how it looks like, the drop down is the filter. On the right I cant find my "Domains" column as shown in the previous picture of the sharepoint.

Valentino1_1-1707200344640.png

 

When i try to write this code im getting an error.

Valentino1_2-1707200980319.png

 

Does anyone know how to get through this?

Note: I already have the "Search" filter next to the drop down, in case that changes something.

These are the filters i already have.

Valentino1_0-1707201522284.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Valentino1 ,

     

    Dropdown control allows to select only one choice, is it OK for you? If it's fine, the formula in Items of Dropdown should be:

    Choices(ListName.Domains)

     

    Then to filter in the Gallery, you need below kind of formulas in Gallery Items:

    Filter(SPlist, DomainDropdown.Selected.Value in Domain.Value)

     

    Best regards,

  • Valentino1 Profile Picture
    111 on at

    Hey, thank you for the response, Im really new at this so I need to ask one more question. Im not sure how to integrate the second formula into my existing one.

    Valentino1_0-1707202818346.png

    This is what I already have.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Valentino1 ,

     

    It seems you have already gotten the formula to work. Are there any other problems to these galleries?

     

    Best regards,

  • Valentino1 Profile Picture
    111 on at

    Yes, I got it somehow haha. I have one thing i want to change still. 

    Valentino1_0-1707206700325.png

    Is there a way for these "Domains" to have a default one so that it doesnt automatically filter on the "HR" one.

     

    This is them in sharepoint.

    Valentino1_1-1707206951417.png

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Valentino1 ,

     

    If you mean Not to default to HR in the Dropdown, you can change AllowEmptySelection to true and then clear the Default property of the Dropdown:

    vjefferni_0-1707207499175.png

     

    Best regards,

  • Valentino1 Profile Picture
    111 on at

    Ah, now it doesnt show the request, im guessing because the default is nothing, and i dont have nothing as an option, there needs to be at least one Domain in order to filter them.

    Valentino1_0-1707207777973.png

     

    Is there a way I could maybe put all Domains as default and then when someone selects one it filters to that one. i dont know im just guessing .

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard