I'm creating a power app to enable users to find available assets and book these for specific days. I've created two SharePoint lists:
'Asset List' :This is a list with all the specifications (Name, type, colour etc.) of the asset including the mandatory Title column which has a unique serial number for the Asset.
'Asset Reservation List': This lists the Title (same unique serial number of the asset), who has booked the asset (based on O365 users within my organisation) and booked from and booked to columns (which are date fields) for all the assets that have already been booked.
Within in my App I have created a screen where users can select their dates for booking (from and to), when they submit this the dates are used to filter the 'Asset Reservation List' for all bookings made on those dates and then using the information returned to filter the 'Asset List' by the Title field to return Assets that are not in the first filter and then list these in a gallery on the next screen where users can select which asset they want to book.
This is the formula I've used but it is not working
Filter('Asset List', Not(Title in Filter('Asset Reservations List', 'Check Out from'>=DateFrom && 'Check Out to'<= DateTo).Title)
Is this the right solution and if so why is the formula wrong or is there a simpler way to do this.
thx