Hi
I have a Table called DaysToStore. It contains a field called Day that the user has picked.
There is also a Bookings Table, which has 3 fields, a unqiue BookingId, ReservedFrom and ReservedUntil.
I want to set Button1.OnSelect to create a new version of DaysToStore, with an added field called Clash.
For each record the value of Clash is either true or false if the Day >= ReservedFrom and Date <= ReservedUntil.
Here is my attempt but it doesn't work, and of course PowerApps is pretty bad and indicating why this might be...
ClearCollect(
NewDaysToStore, AddColumns( DaysToStore, "Clash", LookUp(Bookings, And(Day >= ReservedFrom, Day <= ReservedUntil), true))
)
Do you have any suggestions?