@divaice71 you might have to define what you want to do. Maybe best with an example.
Sums and moving aggregations with conditions there were a few examples on the forum.