Hello Is it possible to sample a PI tag to give the maximum value every 15 minutes in AF then use an analysis to sum the max values over a 12 hour period?

I have a PI tag that accumulates the number of tonnes through a process and resets to 0 every 15 minutes. I need to use this tag to calculate the total tonnes through the process during a 12 hour shift.

 

Can I use an analysis to sample the maximum value every 15 minutes, over 12 hours, and then add those values together?