It keeps me already busy for a while and I looked into the difference between list() and listcombine(), but this did not help me.
the background is that I am trying to get the values in between breaks. so if a break ends at 6pm and driving ends at 9pm, it is 3 hours driving. That calculation is not the issue once I can slice as intended, but slicing the outcome of a filter is not so evident it appears.
I’m no FormulaMap() expert (still learning about this versatile formula ), and I haven’t been using Slice() a lot but I just think the Nth() are not necessary in your Slice() formula.
As when using Slice(), you’re already indicating a position where it should start and end, making Nth() useless (I think ). I was still able to make the formula work using Slice() + Nth() (see the field Failure) but I’m pretty sure some part are redundant (feels like it, at least )
Anyway, I did play a little bit with your doc (after copying it ) and ended up with this formula :
I did try another approach (see List() 1 + 2 ) as your post made me think about something I asked some time ago and kind of took as an inspiration the answer Paul gave me .
very interesting approaches. I work a lot with Nth() and Slice(), but I might have overcomplicated the issue. The rather straightforward solution does the job.
This overview clarifies the differences very well.
When I started with Coda I had the tendency to use ListCombine() most of the time, it is only rather recent I noticed how valuable it is to keep the list() in a list (thus as sub lists) ‘alive’ as starting point for further calcuations.