I have a working formula. The formula is to compare two collection "Booking" and "colResult":
If(CountRows(colResult) >0,
Filter(
Booking,
(ResourceName in colResult.ResourceName) &&
(StartTime <= bookStartTime && EndTime >= bookEndTime)
),
Filter(Booking,1=0))
When colResult have 0 row, ResourceName in colResult.ResourceName is always true. Hence entire Booking is returned.
To avoid this situation I add the first line and last line. It looks ugly but I cannot find a better way. Could you please advise?

Report
All responses (
Answers (