Connect table sum/average to report options

I could be nice to set a up a table - and have the options to show sum and average in a report, such as Bar, Pie og Line. And even better - if filtered the report would change accordingly.

Joachim