Energy Dashboard History retention

Hi, i don’t understand how to configure history of Energy values. Now I have one last month only and i need to extend at least one year. How to configure ?
Thanks a lot

I believe long term statistics are stored indefinitely, separately from history. It happens automatically for entities which have the right state class.