Statistics sensor - input rollover?

I want to have a statistics sensor to monitor propane consumption rate based on change of a scale.

Is there a graceful way to handle roll-over? Say when the counter reaches 0 and I put on a fresh tank, I don’t want to have it report an impossible gain-rate - it should keep tracking the downward trend after the rollover, or reset to start tracking over again.