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 on seco...
Power Apps
Unanswered

Filter Gallery on second column value

(0) ShareShare
ReportReport
Posted on by 16

Hi all! 

 

I actually try to achieve something I never did before and constantly run into failures. 

 

I have a simple SharePoint List with two Columns: 

 

- Team

- Player

 

 

 

Bildschirmfoto 2022-04-18 um 23.33.50.png

I now push this data into a Gallery (Distinct). 

 

Bildschirmfoto 2022-04-18 um 23.38.00.png

 

 

What I want to do now is to select MULTIPLE items from the gallery (Teams) and only show those Players in the second Gallery, that play in ALL selected Teams but can´t find out how to achieve that.

 

Maybe anybody did that before. 

 

Cheers, Quince 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    I believe the Items formula for the Player gallery would look like this:

    Filter(TestListFilterApp, Team = TeamGallery.Selected.Value)

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @QuinceKa 

    Instead of a gallery use a Listbox control with the SelectMultiple property true for the teams.  Set the Items property of the listbox to Sort(Distinct(splist, Team),Result)

    In the player gallery set the Items to Filter(splist, Player in Listbox1.SelectedItems)  In the example in the screenshot, I have a list of sales figures by region and country, analogous to your Teams and players.  As you can see, the gallery on the right has a combination of countries in both selected regiions.
    !1.jpg

  • QuinceKa Profile Picture
    16 on at

    HI @Jeff_Thorpe , 

     

    thanks for your answer. 

    I tested your answer and this works for one selected Item. My question is how to do this with multiple selected Items from the Gallery. 

    I suppose I have to set up a Collection on the onselect property of the teams gallery but how can I filter for players who are playing in all selected teams? 

     

    BR, Quince

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @QuinceKa 

    And that is more complicated than my suggestion.

  • QuinceKa Profile Picture
    16 on at

    Hi @Drrickryp , 

     

    yes, this is the problem. I don´t find a working filter syntax to get to a solution.  

     

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

    Hi @QuinceKa,

    Do you want to filter the Player based on multi Gallery selected?

     

    I have a test on my side, please take a try as below.

    1). Set the OnSelect property of the Gallery as below:

    Collect(colTeams,Gallery1.Selected)

    2). Set the player Gallery Items property as below:

    Ungroup(ForAll(colTeams.Result,Filter(TestListFilterApp,Result in Team)),"Value")
  • QuinceKa Profile Picture
    16 on at

    Hi Qi, 

     

     

    thanks for your answer. 

     

    F.expl: 

     

    Team | Player

    1. Team | Player 1; Player 2

    2. Team | Player 1; Player 3

     

    The second expression 

    Ungroup(ForAll(colTeams.Result,Filter(TestListFilterApp,Result in Team)),"Value")

    returns all players if I select 1. Team and 2. Team ->Player 1, Player 2,Player 1,Player 3

     

    What I want is the Player who plays in both teams: Player 1 

     

    Cheers, Quince

     

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 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard