MArgarida Posted March 21, 2023 Share Posted March 21, 2023 (edited) Hello, within a batch, there are several moments the feed valve opens to add feed. it's easy to calculate the amount added every time the valve opens. But i'd like to have a formula that follows these additions (step changes), cumulative through the batch (if i do sum, i only get the last value thanks Edited March 21, 2023 by MArgarida Link to comment Share on other sites More sharing options...
Seeq Team Nuraisyah Rosli Posted March 22, 2023 Seeq Team Share Posted March 22, 2023 Hi Margarida, You can use the runningSum function in formula tools. For example: $signal.runningSum($condition.setMaximumDuration(7d)) The $signal here is the amount of feed added everytime the valve is open, and the $condition is the batch condition. You can set the maximum duration based on the capsule duration of batch but in this example here I just used 7 days. It should give you something like this: Let me know if this answered your question or you need further clarification. Link to comment Share on other sites More sharing options...
MArgarida Posted March 22, 2023 Author Share Posted March 22, 2023 Many thanks Nuraisyah, it works indeed 🙂 wish you a gd day 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