If your data is boolean, have you considered using a State Timeline? I believe there are a few options in there that can allow you to achieve what you have described.
Example of mine here: Best way to display open/closed for doors and windows - #5 by grant2