Event threshold with hysteresis

Hi,
I’ve created an event to trigger if the value drops below a threshold for 120min. Now the value is oscillating slightly around the threshold value and the event gets retriggered every time the value drops below the threshold again.
Is there a way to implement a hysteresis with an upper an a lower threshold to reduce retriggering?
thanks!
Valentin