Set thresholds based on two values

Hi.
I need to have thresholds based on two values. Temperature and oxygen values.
Does anyone have a good solution on how to do this?
A formula that takes two values.
I am using the Cognite Data fusion source.
Thank you for any tips :slight_smile: