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

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 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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (59,918)