How to extract One month data of Sonoff Pow (tasmotized) in Home Assistant?

In history we can see each day how much the Sonoff Pow is recording consumed Power in KWH. Is there a way to see the data in a Monthly or Weekly basis? Any help would be very much appreciated?

Eden

Have a look at influxdb and grafana.