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

Filtering gallery based on function FIltr and Lookup

(0) ShareShare
ReportReport
Posted on by 51
Hi,
I have a problem. How do I use lookup or some other function to return all the rows in my list? I want to use this function to filter the gallery but when I use the function below it only contains the first row for me. The first column is person and the second one is choice.

 

Filter( 'Stan GMP', LookUp( Places, PersonPlace.Email = User().Email ).MiejscePlace.Value = Miejsce.Value )

 

Thanks 

lists.PNG
Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Nowak 

    Please try the following,

    Filter( 'Stan GMP', Miejsce.Value=LookUp(Places, PersonPlace.Email = User().Email ).MiejscePlace.Value)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • WarrenBelz Profile Picture
    156,299 Most Valuable Professional on at

    Hi @Nowak ,

    Will this do what you need ?

    With(
     {
     wPlace:
     LookUp( 
     Places, 
     PersonPlace.Email = User().Email 
     ).MiejscePlace.Value
     },
     Filter( 
     'Stan GMP', 
     Miejsce.Value = wPlace
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Nowak Profile Picture
    51 on at

    Hi @CNT @WarrenBelz ,

    Thanks for the answers, but I need such a function that will match me all the values from "PlacePlace.Value" to the user, while the user can repeat with the assigned Values.

     

    Best regards

    Nowak

  • WarrenBelz Profile Picture
    156,299 Most Valuable Professional on at

    @Nowak ,

    @CNT responded just before me, so I will exit here (getting late here and also a bit unclear what you actually want different from the post)

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Nowak Could you show clearly the fields in both the lists, their datatypes and explain a bit more clearly what you are trying to achieve. Tnkx.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Nowak Profile Picture
    51 on at

    @CNT 

    I have applications added to the main list, there are choice columns in the application. Like just "Miejsce". I need to filter the gallery from this main database based on the logged in user who will have places assigned in this second list. And for this I need this function to filter the gallery based on the user who is responsible for some place, e.g. Place1, Place2, Place3 etc. and just one user can have several "places". 

     

    In the main database I don't have people columns, I only use choice columns.

     

    Best Regards, 

    Damian 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Nowak 

    What does LookUp( Places, PersonPlace.Email = User().Email ).MiejscePlace return?

    What is the datatype of Miejsce in 'Stan GMP'?

  • Nowak Profile Picture
    51 on at

    @CNT 

    Thats, works.

    I had to fiddle around a bit and it worked. 
     
    Best regards
    Nowak
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Nowak Glad you got it working!

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard