Changing field unit in flux?

I have a flux code running in grafana

import "experimental"

from(bucket: "default_db")
|> range(start: 2019-01-01T00:00:00Z, stop: 2023-01-01T00:00:00Z)
|> filter(fn:(r) => r._measurement == "Frost_API_NY" and r._field == "value" and r.sourceId == "$WeatherDataLocation")
|> range(start: 2019-01-01T00:00:00Z, stop: 2023-01-01T00:00:00Z)
|> keep(columns: ["_start", "_stop", "_time", "_value"])
|> sort(columns: ["_time"], desc: false)
|> aggregateWindow(every: 1d, fn: mean, timeSrc: "_start", createEmpty: false)
|> map(fn: (r) => ({ r with 
    _field: "temperature"
}))
|> yield(name: "temperature")

our_data = from(bucket: "default_db")
|> range(start: experimental.subDuration(d: 1d, from: ${DataSwitchDate}T00:00:00Z), stop: 2023-01-01T00:00:00Z)
|> filter(fn:(r) => r._measurement == "AMS_DATA_2" and r._field == "ai" and r.device_id == "$DeviceId")
|> range(start: experimental.subDuration(d: 1d, from: ${DataSwitchDate}T00:00:00Z), stop: 2023-01-01T00:00:00Z)
|> keep(columns: ["_start", "_stop", "_time", "_value"])
|> sort(columns: ["_time"], desc: false)
|> aggregateWindow(every: 1d, fn: last, timeSrc: "_start")
|> derivative(
  unit: 1d,
  nonNegative: true,
  columns: ["_value"]
)
|> map(fn: (r) => ({ r with 
    _value: r._value / 1000.0 * float(v: $Faktor)
}))
|> keep(columns: ["_time", "_value"])

their_data = from(bucket: "default_db")
|> range(start: 2021-01-01T00:00:00Z, stop: ${DataSwitchDate}T00:00:00Z)
|> filter(fn:(r) => r._measurement == "ELHUB_DATA" and r._field == "kWh" and r.AMS_MEASUREMENT_POINT_ID == "$MeasurementId")
|> range(start: 2021-01-01T00:00:00Z, stop: ${DataSwitchDate}T00:00:00Z)
|> keep(columns: ["_start", "_stop", "_time", "_value"])
|> sort(columns: ["_time"], desc: false)
|> aggregateWindow(every: 1d, fn: sum, timeSrc: "_start")
|> keep(columns: ["_time", "_value"])

union(tables: [our_data, their_data])
|> range(start: 2022-01-01T00:00:00Z, stop: 2023-01-01T00:00:00Z)
|> sort(columns: ["_time"], desc: false)
|> aggregateWindow(every: 1d, fn: max, timeSrc: "_start")
|> map(fn: (r) => ({ r with 
    _field: "energy"
}))
|> keep(columns: ["_time", "_field", "_value"])
|> yield(name: "energy")

And the problem I have is both for temperature and energy I have a unit kWh, is it possible to rename it somehow?