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

filter gallery by comparing two lists

(0) ShareShare
ReportReport
Posted on by

Hello all,

I would like to  Filter to retrieve records from the "list1" data source based on certain conditions. The condition is that the "Status" should be equal to " Approve", and the "Title" should match the "Title" field in the "List2" data source for any of the person field that is there are 2 person field, if the current logged in user is one of the person then it should display the record in his/her gallery. 

 

I tried , the item property of gallery is 

Filter( list1,Status.Value = "Approve" && ( Title = Look Up(list2, people field1. Display Name = User().Full Name, Title) || Title = Look Up(List2, People field2 .Display Name = User().Full Name, Title)))

 

It won't work and not shows any error, help me to figure out. Thanks

Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at

    @ThaarA-1424 

     

    your formula looks good Issue should be with data. Wild guess is cases/spaces of characters.

    labelpeoplefield1:Look Up(list2, people field1. Display Name = User().Full Name, Title)

    labelpeoplefield2:Look Up(list2, people field2. Display Name = User().Full Name, Title)

     

    Take another gallery for testing the data

    items : List1

    label1:Status.Value = "Approve"

    label2:Title

    label3:Title = Look Up(list2, people field1. Display Name = User().Full Name, Title)

    label4: Title = Look Up(List2, People field2 .Display Name = User().Full Name, Title)

     

    This works for me always for such issues. i hope it works for you too.

     

    Please click Accept as solution and Thumbs Up. 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.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard