Adjust energy sensor value after a replacement

Hi,
I replace an energy sensor with a new hardware.
I deleted the old one and renamed the new seson with the old sensor name. I can see the history data but the new one has started form 0… I tried to change the first value form statistic but I don’t see any changes… any suggestion? thanks a lot.