cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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
Super User III
Super User III

Hi @Miguel_MESP ,

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.

Hey, not working. 

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

 

@Miguel_MESP ,

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

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (20,424)