Tracker averages

My doctor likes that I can show himmy blood sugar and blood pressure readings. However, he wants me to be able to give him the averages for each. the time frame should be customizable for instance week, month, 3 months with date ranges. Of course, there may be other items that might need to have the ability to calculate averages

thank you