Call specific historical data

Hi!

I want to know if it’s possible to call (using tag historian) different periods of time from a tag that is being recorded.

I have a tag X that stores it’s value every 5s. However, I only need to call the stored value on each “5th minute” of the day ([HH:MM] 10:05, 10:10, 10:15, etc) or the closest recorded value to said time (10:04.95, 10:10.03, etc).

Is this possible? if so, how?
I’m using a SQL database and ignition 8.0.6.