Metrics based on variable value

Dear all,
first of all let me thank Grafana developers, it is an impressive work making data representation much easier.
Coming to the question: I need to display more that one metric in one panel and currently I use multiple queries. As not all of them are needed at the same time, is there any way to calculate and display the metrics according to the checkbox in a custom variable ?
My data source is MySQL

Thank you for your support
Gaetano

Yes it is possible!!
you can see a example

Thank you Daniel, I’l go and check it!