Feng Jin Liew Posted October 27, 2021 Share Posted October 27, 2021 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()) Link to comment Share on other sites More sharing options...
Administrators Teddy Posted October 27, 2021 Administrators Share Posted October 27, 2021 I think you are looking for this. periods(3min,3min) Link to comment Share on other sites More sharing options...
Administrators Teddy Posted October 27, 2021 Administrators Share Posted October 27, 2021 If the above doesn't get you what you are looking for can you attach a screenshot with a drawing of your goal? I didn't fully understand what you were doing with the sum() aggregate at the end so the periods formula I supplied might not help with that part. Link to comment Share on other sites More sharing options...
Feng Jin Liew Posted October 28, 2021 Author Share Posted October 28, 2021 Hi Teddy, Thank you for the response. I have a set of data that are measured every 0.03 mins and I would like the data to be visualized as a cumulative sum of every 3 mins. I may have used the wrong formula. How should I share the worksheet with you? Link to comment Share on other sites More sharing options...
Seeq Team Siti Tay Posted October 29, 2021 Seeq Team Share Posted October 29, 2021 Hi Feng. Can you give a try this formula and let me know if it works $SumRange = periods(3min) $signal.runningSum($SumRange) 2 Link to comment Share on other sites More sharing options...
Feng Jin Liew Posted October 29, 2021 Author Share Posted October 29, 2021 That works! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now