sum of values of a previous day or more days

could you provide an example and say again what should happen with the sum_price. What does get aggregated in which way? If you want to do things with previous or following rows there are several principal options:

There is the LAG node to access earlier lines.

You can use some sort of artificial ID or even do a Restart within a rank/ID.

Also the Missing value node allows to access previous and following rows. One could combine that. Cf. this discussion.