cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Filter a galley based on a column from other list

Hello all,

 

I have a screen on a app where I present vehicle requests presented on a sharepoint list called "Vehicles". Then I have another list called "CheckIns" where I place the date time of check In.

 

I'm creating a screen where people will do check in and check out of the vehicle and what I want to do is to filter that gallery only for the requests who are blank on the checkOut column on CheckIns list.

 

I'm trying with look up but doesn't work:

Filter(Request, LookUp(CheckIns, IsBlank(CheckOut)) or Filter(Request, LookUp(CheckIns, CheckOut = "")

 

Some more hints to help visualize:

This is my Request list:

Miguel_MESP_1-1606992835108.png

This is my CheckIns List: Request ID is a lookup column to ID from Request list

Miguel_MESP_2-1606992894809.png

 

This is my gallery example:

Miguel_MESP_3-1606992953304.png

 

Thanks in advance!

 

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Something like this should work - assuming these are the matching columns

Filter(
   AddColumns(
      Request, 
      "Check_Out",
      LookUp(
         CheckIns, 
         RequestID=ID
      ).Checkout
   ),	  
   Check_Out=Blank()
)

 

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.

Anonymous
Not applicable

Hey, not working. 

I need to do the addcolumns command? It's not possible directly through a lookup?

 

@Anonymous ,

If you want to filter by the field - yes you need to add the column. What is not working?

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,388)