Energy Dashboard Cost Display Issue

Hi everyone, I’m hoping someone can shed some light on an issue I’m experiencing with my energy dashboard. I’ve noticed that while the daily cost values for 2024 are accurate, when I switch to the yearly view or specific weeks, the cost values become incorrect. I’ve attached some images to illustrate the problem.

I’ve set up my energy monitoring using MQTT, pulling data from my electricity meter and solar inverter. The current cost setup involves helper sensors for each device, as shown in the templates below. I suspect the issue might be related to an old faulty measurement, as I had to correct a peak in my statistics recently. However, this correction doesn’t seem to have fixed the cost display issue.

Has anyone encountered a similar problem or have any suggestions on how to resolve this? I’m considering whether a full data reset might be necessary, but I’m hesitant to lose all my historical data. Any advice would be greatly appreciated!

Best regards,
AnF