How to make a Pi Attribute only retain its value for x amount of hours.

I have an attribute which is an output from an Analysis which runs every 24 hours. The Analysis takes one Pi tag value and takes from the other ('Case Count @ 18:00'-'Case Count @ 17:00') and outputs to Attribute 'HourSixPMOut' (which is then displayed).

Even though the formula only runs every 24 hours I want it to only retain it for 18 hours. This is because I want the screen to display the value at execution then for the following 18hours then show 0 until it is recalculated 6 hours after. Hope that makes sense? Is it possible to create this in the original formula or do I need another Analysis/Attribute to do this?

Parents Reply Children