I am building an app with PowerApps and struggling to come up with a formula to filter 2 tables.
The app is a booking system for loaned laptops and for the most part is working nicely.
I have 2 SQL tables dbo.BookingData and dbo.Laptops
dbo.BookingData has several fields for the booking data and dbo.Laptops has a Laptop field containing a complete list laptop names.
What i want is a gallery that lists all available laptops i.e. not booked out already so that i can use this in a dropdown box on the booking form, currently i just use the formula for Items '[dbo].[Laptops]' and the title as ThisItem.Laptop
On my booking form the Items formula is LaptopList.AllItems (Gallery called LaptopList)
dbo.BookingData has a LaptopID field and a Returned field, the returned field would be a 1 or a null, 1 being it has been booked out and then returned and is available or null being its been booked out and is not available.
I need a formula for the gallery LaptopList that will list all laptops that are in dbo.Laptops and arent in dbo.BookingData.LaptopID with a null value for dbo.BookingData.Returned.
I am a bit of a noob with this and i have spent a couple of hours trying to find examples online but not been able to find anything that works so any help would be greatly appreciated.