web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to filter a Galler...
Power Apps
Unanswered

How to filter a Gallery of one Sharepoint List based on a value in a 2nd list.

(0) ShareShare
ReportReport
Posted on by

I have created a gallery and want to filter it based on a value in a related list.  

 

The primary list is named TicketList and contains a column named TicketStatus which is a lookup column to the StatusList list.  The StatusList list includes a column named Open which is a binary column.

 

I want to filter the gallery to only include those TicketList items which have a TicketStatus that is set to Open=true in the StatusList list.

 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @OldDogNewTricks - I might be reading this too simply, but have you considered using:

     

    Filter(
     TicketList ,
     TicketStatus.Value = "Open"
    )
    
  • OldDogNewTricks Profile Picture
    on at

    @Amik It's not quite that straight forward.  "Open" is a binary column of the list StatusList (See the attached).

     

    I'm interested in filtering the value in another list that is a lookup to the StatusList for each item that has a value that is flagged as open (the Open Column is true).

    StatusListCapture.PNG
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @OldDogNewTricks thanks that is clearer.

     

    You can leverage the (non-delegable) Add Columns function to achieve this:

     

    With(
     {
     _modified_data: AddColumns(
     TicketList,
     "status_text",
     TicketStatus.Value
     )
     },
     With(
     {
     _data: AddColumns(
     _modified_data,
     "isOpen",
     LookUp(
     StatusList,
     StatusList[@Status] = _modified_data[@status_text],
     Open
     )
     )
     },
     Filter(
     _data,
     isOpen
     )
     )
    )
    

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 321 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 289 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 200 Super User 2026 Season 1

Last 30 days Overall leaderboard