Create a dashboard whit the average of a custom field

I need to create a dashboard that shows me the average value of a custom field month by month.

And in general, how can I make calculations?

It may be easiest to make your own homepage portlet that calculates these values in a table. If you explain the goal more maybe we here can offer more advice