Combining two queries into a single panel - Histogram

Hi Everyone, I’m quite new to visualization on Grafana, would need your help to visualize two queries on a single panel. My first SQL query is a metric - integer and I want to be the maximum value and my second SQL query is also a metric - integer and this will give me the value of number of items used from the value I get from the first query.

Currently I’m using Grafana v11.2.0

Hi,

you can configure a query variable as your 1st sql query to get the max value, then inside your panel, you can use the variable in your sql query to get the items you are interested in