HA Energy: switching to a new Energy Import entity but keep my old statistics

I have been collecting energy data for the last few months with an entity that unfortunately contains many measurement errors (spikes). Now I have created a new sensor that takes my old entity and filters it with an outlier filter.
Now I would like to track this new filtered sensor in the Energy Dashboard from now on.

Unfortunately, by doing this, I lose my valuable old data.

Is there a trick here?
My prefered trick would be to add the outlier filter to the original sensor but does this even work?

My original Sensor:

template:
  - sensor:
      - name: "Smartmeter Import energy"
        unit_of_measurement: "kWh"
        state_class: "total_increasing"
        device_class: "energy"
        state: "{{ states('sensor.total_in')|float}}"

My filtered entity:

sensor:        
  - platform: filter
    name: "Total_in_filtered"
    entity_id: sensor.Total_in
    filters:
      - filter: outlier
        window_size: 4
        radius: 4.0
        precision: 3