Superset How to add a filter in dashboard
Asked Answered
M

3

10

Superset comes with an example named "World's Bank Data". In its dashboard, there is a filter named "Region Filter". How can I implement this? Is there a tutorial on this? Any pointer or a quick explanation will be greatly appreciated.

enter image description here

Me answered 6/8, 2018 at 18:15 Comment(0)
E
3

The old approach was to create a "filter box" slice. It was announced in 2022 (with version 1.5) that this approach is being deprecated in favor of dashboard native filters.

As of version >=1.5.0 you add a dashboard native filter by clicking +ADD/EDIT FILTERS in the top left of the dashboard:

enter image description here

This filter panel can be collapsed, so you may need to click the expand arrow if it is hidden.

In Superset versions >= 2.1.0, the filter panel can be moved to the top of the dashboard in a horizontal layout if the feature flag HORIZONTAL_FILTER_BAR is enabled.

Egret answered 3/5, 2023 at 14:42 Comment(0)
R
0

Use superset jinja templating, example:
({{ "'" + "','".join(filter_values('platform')) + "'" }})

Ripe answered 16/3, 2022 at 13:10 Comment(1)
How can i use it?Churchless
I
0

create a new chart and select the "filter box" and then add this to your dashboard

Indigestion answered 13/7, 2022 at 3:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.