Open (or embed) visualization with a preset filter

Hi folks,

I’ve searched a lot on Redash documentation and even tried to understand parts of source code in order to avoid asking for something that is already built in on this wonderful tool.

Here’ my need: I’d like to be able to open a visualization (a table, for instance) with a preset filter, just like what can be used with dashboards. An example:

DASHBOARD (the last argument on the URL refers to a filter)
https://redash-preview.netlify.com/dashboard/test-dashboard-filters?p_param=arifffffg&p_date=2019-05-05%2015:47&p_Dropdown=1&Country::multi-filter=Brazil

QUERY VISUALIZATION (how can I set the same filter?)
http://preview-backend.redashapp.com/embed/query/121/visualization/216

Thanks in advance!

Arnaldo

EDIT: I forgot to mention that I’m not able to use query parameters here in my organization.

EDIT 2: I’ve already tried some URLs like these below but none of them worked:
http://preview-backend.redashapp.com/embed/query/121/visualization/216?Country::multi-filter=Brazil
http://preview-backend.redashapp.com/embed/query/121/visualization/216?p_Country::multi-filter=Brazil
http://preview-backend.redashapp.com/embed/query/121/visualization/216?Country=Brazil
http://preview-backend.redashapp.com/embed/query/121/visualization/216?p_Country=Brazil

Hi folks,

I’d like to share that I built a workaround with a Chrome Extension that injects Javascript on Redash (and on any other page). I don’t consider it a good solution but it’s working now. If anybody needs further details, please drop me a line here…

Bye,

Arnaldo

Hi I have almost similar needs as you mentioned above. I need to be able to prefilter (immutable) the dashboard for each user for an app that I created which will use iframe to serve redash dashboard.

I’m wondering if your solution might point me to the right direction and to conclude if it is possible to use redash for the dashboard.

It is not possible to make an immutable parameter selection in a Redash embed. Even if you use a browser extension for this, a user can simply disable the extension (or use their browser’s page inspector) to bypass the “security”.

From the Redash documentation:

Beginning with Redash V8, an embedded dashboard may use parameters. But any user can modify them, which makes Redash the wrong tool for embedded analytics. Only share dashboards with trusted stakeholders.

Redash is not the right tool for this.

Are there any updates on this requirement in Redash v10 or maybe a workaround? is it possible to share the same dashboard (parameter included) with ldap users?