Average Watts from Total Energy history

I have the history graph for total watts that I can select a start and end date for.

Is there any way I can get the average watts over that same period ? . A moving average line would be nice to include on the graph.

I’ve seen a couple of ,posts about how to get this for a specific entity using SQL but I wanted the ‘total watts’ average