in order to have a generic question to analise any column of any table.
I'm doing a Dashboard to measure data Quality it would be interesting to have 1 dashboard for everything. Is that possible? This example I wrote doesn't work... any shortcut?
Most 'proper' databases support the notion of a function that returns a table. PostgreSQL - Function Returning A Table - GeeksforGeeks
You could pass the column and table names to a function. It would return the data. You'd need to alias the returned columns so you wouldn't confuse metabase.
I've not tested this but no reason to believe it won't work.