Custom Report

Hi
How can I create a custom report which can show the total or average at the bottom?

Is there a way to introduce such a row?

Thank you
Kartik