On Grafana version 11.5.2, it is on the section Value options -> Calculation :
11.5.2
Value options -> Calculation