Group by transformation breaks when changing variable values

Group by transformation breaks when changing variable values.

  • What Grafana version and what operating system are you using?
    Grafana v10.2.2

  • What are you trying to achieve?
    Bar Chart Panel where total is grouped by time

this is working fine

Sure I can fix it, by setting up the correct calculation again, but this would mean, everytime I change the variable filter, I have to also edit the panel to correct the calculation: