Keep transformation chains stable with static refIds
Build transformation pipelines that keep working when your queries change. Transformations like Merge series/tables, Join by field, Join by labels, Series to rows, and Reduce (except in Reduce fields mode) build the refId of their output from the refIds of their input, for example merge-A-B. When you add, remove, or rename a query, or a query returns no data, that generated refId changes, and any later transformation that filters on it stops matching.
You can now give these transformations a static refId. Click the name in the transformation row, enter your own, and point later transformations at it. It works like naming a query in the query editor: the refId stays the same no matter how the incoming data changes. Clear the name to go back to the generated refId.