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

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,530)