I did the same the other day, but on AB.
Make a fifo with 24 positions, load the fifo every minute as you said, then begin to download the fifo thru a fifo unload instruction when the fifo is filled out, then you make the average of the 24 values located in the fifo register, just sum the 24 values and divides by 24. From that point on every data that is entered into the fifo queue, can be used to average the fifo register when the data in the 24th position leaves out the queue.