Cusum() with date range (Timelion)

Hi,

I wanted to know if it's possible to do a cusum() who decrease or increase according to dates range.

For example if I have 2 data like these : { amount : 300, beginning_date: "2019-06-01T00:00:00Z", ending_date : "2019-06-30T00:00:00Z" }
{ amount :200, beginning_date: "2019-06-15T00:00:00Z", ending_date : "2019-07-15T00:00:00Z" }

Can i have an amount of 300 at June 1st, 500 at 15th June and 200 at July 1st?

Thanks in advance!

Cusum is cumulative, so, if I'm understanding your question, the answer is no. What exactly are you trying to do? Maybe there's another way?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.