Hi
I have 2 sharepoint list
1) Booking list which has Title, Departure Date, Return date and a look up column name Vehicle which gets the vehicle name from Vehicle list
2) Vehicle list which has Title, Vehicle no(this column is the reference for lookup in my booking list
What I am trying to achieve is to display the vehicle that is not booked for a particular date and time.
I am able to pull all my bookings for a particular To and From date using the below formula
Filter(
'FAJ_Test_Transport booking',
(var_starttime > 'Departure Date' && var_starttime < 'Return date') || (var_endtime < 'Return date' && var_endtime > 'Departure Date') || ('Departure Date' > var_starttime && 'Departure Date' < var_endtime) || ('Return date' < var_endtime && 'Return date' > var_starttime)
Where
Set(var_starttime,'Departure Date_DataCard1'.Update); - var_startime is value when the user selects a date in forms
Set(var_endtime,'Return date_DataCard1'.Update); - var_endtime is value when the user selects a date in forms
I am stuck in getting those vehicles which are not booked for a requested date and time. Please help