diff --git a/src/panels/developer-tools/statistics/dialog-statistics-adjust-sum.ts b/src/panels/developer-tools/statistics/dialog-statistics-adjust-sum.ts
index 8dd31d35c0..b34769e44b 100644
--- a/src/panels/developer-tools/statistics/dialog-statistics-adjust-sum.ts
+++ b/src/panels/developer-tools/statistics/dialog-statistics-adjust-sum.ts
@@ -132,20 +132,20 @@ export class DialogStatisticsFixUnsupportedUnitMetadata extends LitElement {
if (!this._stats5min || !this._statsHour) {
stats = html`
No statistics found for this period.
`; } else { const data = - this._stats5min.length >= 2 ? this._stats5min : this._statsHour; + this._stats5min.length >= 1 ? this._stats5min : this._statsHour; const unit = getDisplayUnit( this.hass, this._params!.statistic.statistic_id, this._params!.statistic ); const rows: TemplateResult[] = []; - for (let i = 1; i < data.length; i++) { + for (let i = 0; i < data.length; i++) { const stat = data[i]; - const growth = Math.round((stat.sum! - data[i - 1].sum!) * 100) / 100; + const growth = Math.round(stat.change! * 100) / 100; rows.push(html`