Config from query results" transformation — Thresholds not appearing in Select dropdown

Hi, guys

Grafana Version: ( 12.3.0)

Data Source: Microsoft SQL Server

Panel Type: Gauge

Description:

I am trying to implement dynamic thresholds for a Gauge panel using the “Config from query results” transformation. Although the SQL query returns the necessary numeric fields and the Thresholds are manually defined in the panel’s “Standard options”, the Select dropdown remains empty when the Use as property is set to “Thresholds”.

Steps to reproduce:

  1. ​Create a Gauge panel with an MSSQL query returning current_value, dynamic_min, and dynamic_max.

  2. ​In the Standard options > Thresholds section, manually add two thresholds (e.g., at 10 and 20) with “Absolute” mode.

  3. ​In Value options > Fields, select only current_value to display a single gauge.

  4. ​Go to the Transform tab and add Config from query results.

  5. ​Map dynamic_min to Use as: Thresholds.

  6. ​Click the Select dropdown.

Actual result:

The Select dropdown is empty (no “Threshold 1”, “Threshold 2”, etc. are visible).

Expected result:

The dropdown should display the manual thresholds defined in the panel settings to allow mapping them to query fields.

Workaround attempted:

Manually editing the Panel JSON to set “handlerKey”: “threshold1” and “threshold2” works and applies the dynamic values, but the UI does not reflect this and doesn’t allow further editing via the dropdown

1 Like