Sum of data for a selected time period?

Sum of data for a selected time period?

@Andrew Sevil

Hi, is it possible to have a widget display the total of a variable over a time period specified by the widget?
So if I set the widget to show the last 7 days of a variable (lets say rainfall), the result is the total of the period displayed?