I have this formula but I am trying to modify it to calculate cumulative sum of data every 3 minutes. The data I have are generated every 0.03 min. What should I put in the periods (blank) here or do I need another formula?
$Periods = periods( blank )
$average = $acc.aggregate(average(), $periods, durationkey())
$difference = $acc - $average
$difference.aggregate(sum(), $periods, durationkey())