Dylan Ooi Posted August 30, 2021 Share Posted August 30, 2021 Hi, I am currently trying to build a dashboard on Seeq using a script on excel, however everything needs to be done as a formula. So I was wondering if anyone knew how to create a 'signal from condition' using only the formula tool in 1 line of code. Cheers Link to comment Share on other sites More sharing options...
Thorsten Vogt Posted August 30, 2021 Share Posted August 30, 2021 Hi Dylan, you can use the aggregate function for this: $signal.aggregate(average(), ($signal > 90).removeLongerThan(1wk), durationKey()) In this example the average of the signal is calculated whenever its value is above 90 and the result is drawn as a line over the duration of each capsule. You can find more information on the function and its parameters inside formula documentation. Hope this helps. Regards, Thorsten 1 Link to comment Share on other sites More sharing options...
Andrew Fontenot Posted August 30, 2021 Share Posted August 30, 2021 You could also create the signal in Seeq using the Signal From Condition tool, then select Item Properties for that signal to view the formula. You could do the same for the condition referred to in the formula and replace $capsules with the condition's formula. 1 Link to comment Share on other sites More sharing options...
Dylan Ooi Posted September 1, 2021 Author Share Posted September 1, 2021 Thanks for the responses everyone it solved my problem! 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