Weird increments of Kwh

Hi there!!

Some days or weeks ago I try to make a acummulative of kwh( and after a daily KwhD…)

The first moments (days) it seem to work ok, .the value is upgoing smooth …past 3 o 4 days and the value is 80 kwh ) is ok …but suddenly one day appear 10000kwh. and still continue upgoing correctly.

I try some times, directly from an input to a feed in kwh …or with a post procees with the same result
Also the daily kwhd is altered …

I’m surprised that the total kwhd is only updated at the 1.00 AM
I expected the value to be updated as the day progresses

what can I do ?