Repeat question in dashboard with different values

Is it possible to add the same question several times to a dashboard, but have each of them display the data filtered by a different value?

Hi @barraponto
Yes, but you would need a filter for each question.
It basically sounds like you're looking for this:
https://github.com/metabase/metabase/issues/3575 - upvote by clicking :+1: on the first post

1 Like

Thanks!
Yes, I figured out that it is possible: just add a filter per question, with a different default value.
That issue would definitely improve the UI, though. Go team!

BTW, is there any way to duplicate the question in the dashboard? I've configured columns and visualizations and I would love to just copy-paste the question (and then set the filter manually).

@barraponto You would have to do that through the API. It will get a little tricky on dashboards, since it some of the more complex parts, so definitely not easy-peasy.
The easiest would be to setup the question like you want and then you can just add the question multiple times on the dashboards, so it will create a card for each, which you'll then connect a filter to each card.

To clean up the UI if you're using the workaround of one filter for each chart, if the filter values are fixed or can be provided in the URL, you can hide the filter widgets using the URL fragment identifier #hide_parameters=city,suburb where city and suburb are the filter labels you want to hide.

The doco outlining this can be found here.

I only found this out last week after using Metabase for 3 years ...

I was looking for the method of hiding certain filter widgets, and found your response really helpful, thanks a lot.

But why does it seem unstable :sweat_smile: I succeeded several time, and thought this could work. Then I continue to add #hide_parameters at the end of url, but it doesn't work later. Wonder why, have you encountered with the same situation?

Here is the pics:

You have a typo in that 2nd url - missing the ?

There is ? in the 2nd url. Still thanks for the notice, I double checked, and found out the filter label name is n not matched with what I added in the URL, after modification, it worked.

BTW, do you happen to know how to hide the logo? at the bottom of the page.

image

Yes, you pay!!

Fair enough :rofl:

1 Like