Extra filters (to the chart as query params) #32754
Replies: 2 comments
-
Hi, For those interested in testing the improvement, there's a branch where you can install and verify here Here's one example introducing the filter to the chart via URL:
decoded_url: encoded url: I'm also attaching a chart I created. Please let me know if you find this feature useful for superset :) |
Beta Was this translation helpful? Give feedback.
-
Seems highly valuable. Worth noting that @mistercrunch and @Vitor-Avila were also discussing similar filter URL schemas for dashboard context (embedded or otherwise), so these should probably be aligned in approach. |
Beta Was this translation helpful? Give feedback.
-
Extra Filters
Contribution Summary
We added the ability to pass filters to Superset charts via URL parameters. This feature lets you:
How It Works
The extra filters feature works by:
extra_filters
This approach keeps the original chart configuration intact while allowing for dynamic filtering based on URL parameters.
Working URL Example
This example shows how to filter a chart to show data for the UK (GBR), metric 1 greater than 3, and metric 2 greater than 0:
Original chart URL (without filters):
Simplified URL (decoded):
Simplified URL (encoded):
Screenshot (chart with extra_filters)
Common Filter Operations
The extra filters feature supports all standard Superset filter operations:
==
,!=
>
,>=
,<
,<=
IN
,NOT IN
BETWEEN
LIKE
,ILIKE
IS NULL
,IS NOT NULL
Why This Matters
This feature solves several real-world problems:
The extra filters functionality makes Superset charts more flexible and easier to integrate with your existing systems and workflows.
Beta Was this translation helpful? Give feedback.
All reactions