Dashboard variables set dynamically from a query

Thanks!

Will this work in Kibana Maps ES|QL layers as well?