Cognite Charts: IF/ELSE Functions for Calculations [Community Contributed]
On Behalf of Charts super users at Clear Lake:
I would like the ability to incorporate “If/Else” statements as a function in Charts similar to what is capable in Excel. There are some calculations that rely on certain conditional parameters to be met in order to define which mathematical approach must be taken.
Page 1 / 1
Hello, Christian.
Perhaps this will help. We have a logical check function that might help here.
Perform a logical check between time series/constants and returns the assigned time series/constants when the condition holds true or false. The logical check is performed following the format: Value 1 {operator} Value 2, where the operator can be Equality (==), Inequality (!=), Greater than (>), Greater or equal than (>=), Smaller than (<) or Smaller or equal than (<=)
Here is an example of it being used:
Best regards, Knut
Hi Knut,
I believe this might be what the users were looking for! I will follow up if there are any more questions or concerns. Thanks!
Hi @crgomez13 just following up to see if the above is what your users are seeking?
Hi Anita,
This covers what was needed by the user. Thanks
That is great @crgomez13, thanks for confirming. We’ll close this thread for now, but feel free to reopen it anytime
Hi @crgomez13,
Thanks for all your great contributions in our community! We’ve chosen to move your article to our hub's How-To section as it will greatly benefit other members of our community. Thank you for your understanding, and we look forward to seeing more great contributions from you in the future!