Field filter for switching databases

Is it possible to setup a field filter to switch the database? We have a setup where multiple databases have the same tables and we want to use the same dashboard for each one. So either we create a bunch of similar questions or we use a field filter on the database to change which one we’re looking at.

Something like this:

select count(*) from {{database_name}}.active_users;

Hi @bpourkazemi
Currently no. The feature was removed to prevent SQL injections. There’s a request for bringing it back, go upvote by clicking :+1: on the first post:
https://github.com/metabase/metabase/issues/4639

Thank you!