Possible to hide part of a series where data is shorter than N timespan?

I’m using Grafana with Prometheus. I’m wondering if it’s possible to hide parts of my series where the time span of the data is less than a certain threshold. So let’s say my graph shows errors as percent of traffic over time. I want to show results only when there is above 50% errors for longer than 30 minutes. I’m trying to visually represent the type of alert criteria we have in alert manager.