How to roll forward and sum?

For example:

How can I generate the new list?
1.5
1.5+1.35
1.5+1.35+1.215
1.5+1.35+1.215+1.098415
,
Thanks

hi

here’s a quick DS one-liner equivalent:

Math.Sum(List.GetItemAtIndex(x,0…GetKeys(x) ) );

4 Likes

It works!!Thank you so much

If you don’t like scripts, here is one way to achieve the same using OOTB nodes:

4 Likes