Get list to cumulative count until certain value, then continue from start at next value

Man tryna explain this one is tough with my already limited communication skills. Cumulative counting a list. When the list reaches a certain value. I want it to start cumulative counting from the start of the next value when it reached the specified total

I’ve semi done it here but its not in a way its flexible for variation

I’m not at a pc right now but what about

  1. X / 35000, after the cumulative sum.
  2. Math.Floor, to get the amount of times 35000 fits. Perhaps Math.Ceiling also works but hard to say without a pc
  3. List.GroupByKey on the original list using the keys from the math.floor node.
1 Like

So smart! thanks Daan :slight_smile:

2 Likes