My problem is simple to describe but might be complex to solve, I can’t figure it out, I need your help
In the screenshot below, what should I do to go from the left table and obtain the table in the right ? Basically, the left table contains date ranges of events. Events highlighted with the same color are consecutive events and I would like to group them and obtain the table in the right.
As an example, If I have :
Event 1 : from 9am to 10am
Event 2 : from 10am to 11am
I would like to get only 1 event as follow : from 9am to 11am.
Thanks for your reply Ergin, very interesting approach !
The events are not necessary sorted in the table so your algorithm would fail for the situation in the image below: it would not merge the green events. Would it work if I perform a sorting on the fly while using a Search for then applying your steps ?
You are right. It will fail if not sorted. I have tried sorting by a date range and it didn’t even show that field. Probably, native Bubble doesn’t support it
There is a very inefficient sort if the start dates are unique but I wouldn’t recommend that.