-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filters as a native dashboard (v2) construct #5269
Comments
Jinja templating filters, i.e. changes in the filter affect values in the template params. We currently have a few use cases where templates seem like a good solution for producing many related but still slightly different charts while using fewer data sources (currently working on a feature to enable overriding the datasource template params in the chart). This would probably need some sort of schema to be able to generate the filter, so probably not something for MVP, but potentially down the road. |
Some additional ideas on this:
Would any of these be viable? |
Has single select in Table view functioning as a “filter on” action been given any further thought? Similar to Tableau in some ways |
@fordhamedu there's clearly a need for better constructs around visualizations being able to post filter actions to the dashboard (like the Table viz can currently do). Not sure how those should be scoped (should it affect the whole dashbaord? the section? the tab?) Maybe really good dashboard-native filtering removes some of the need for that. |
1 similar comment
@fordhamedu there's clearly a need for better constructs around visualizations being able to post filter actions to the dashboard (like the Table viz can currently do). Not sure how those should be scoped (should it affect the whole dashbaord? the section? the tab?) Maybe really good dashboard-native filtering removes some of the need for that. |
On-the-fly grouping. I often find that my filters affect how I want to group my charts. If, for instance I filter by region I might want to se a chart grouped by product, but if I then change my filter to product, I want to see that same chart grouped by region. Etc. So having a groupby element which can be made to affect specific charts would be very valuable. |
the process of “select then deselect then select another” to isolate and explore the connected data in multiple charts within one dashboard can be counterintuitive to most users. Especially within longer tables it’s an easy oversight to forget the last deselect, and then confusing the data that’s displayed. A optional single select and optional filter on would enable a user to easily switch between aggregate and isolated selections and passing variables through markdown, iframe, and any url Parmaters On a single Dashboard. That would be awesome |
In addition to showing background bar (histogram), would it be helpful to include statistics (e.g. % count, raw count) for each value? This way the user can get an accurate measure which may not be apparent from histogram? Or maybe the stats show up when you hover over the histogram bar. |
We have some work in progress that would enable context-aware filtering for multiple filter boxes in dashboard / explore view. I feel that could be useful here. Adding @emlittleworth |
Hey everyone, as @JamshedRahman mentioned at Twitter we have work in progress for cascading (or context-aware) filtering. Another project we have coming up that is relevant here is cross-filtering. We brought this up at the Superset meeting on 6/29. We haven't yet decided on design but are hoping it'd have similar functionality to this example: https://dc-js.github.io/dc.js/. For example, when you select "Loss" in the "Days by Gain/Loss" chart, the other charts filter using that value as well. |
@emlittleworth curious whether you're thinking client-side cross filtering or more of a "filter events emitted from within charts"? The first one would require massive changes, I doubt whether it's actually reasonable or even possible to do this. The second is totally doable, and the Table visualization can actually do this today if you turn on the feature. |
Definitely filter events emitted from within charts. This seems reasonable since we already have a notion of dashboard filters through the filter box. This feature would enable other visualizations to trigger dashboard-wide filtering. Thanks, I'll have to look into the Table visualization. |
Here's how it's done in the Table visualization: It's more or less just a matter of hooking filter events up in other visualizations, though it's a bit more complicated than that. Beyond emitting the filtering event, it'd be nice to have visual components (tooltip, context menu, ...) that would make it clear what is about to happen when you click and present multiple options where necessary. While the table component knows about the dimensional context (we know one cell correspond to a single dimension value) it's easier there. A single bar in a bar chart may represent 2 dimension members and may have to emit 2 filters. |
Oh yeah good point about multiple dimensions. And I agree about the visual components as well. Another thing to keep in mind there is how we should display charts that cannot be filtered because they don't contain the filter dimension. |
Ideally the dashboard app should make it very clear which filters are active and which charts they affect. Maybe hovering an active filter components would highlight the targets, or hovering a filtered chart would highlight the related "source" filters. |
Yeah that sounds good. Can you elaborate your thinking on cascading filters? What do you mean by "maybe a whitelist blacklist approach"? |
We would like to add a proposal for the native dashboard filter as outlined in the first post. We are looking for feedback and approval before implementing. Dashboard changes
Chart changes
URL changes
Dashboard mockupsCollapsed filters Opened filters New filter dialog |
hi @jaylindquist i like your proposal. |
@graceguo-supercat Today superset has a "Time Column" for filters that it uses to manage which column to filter on. I'm not sure how a generic time filter would work. For instance, a table of events that have a start_date column and end_date column. If a user wanted to filter on all events starting in January, they wouldn't want the filter to apply to the end_date column as well. They would need to specify which column(s) the time range should apply to. |
@mistercrunch @graceguo-supercat Just pinging to see if there is any other feedback before we start planning our implementation |
Deprecating filter_box may be tricky as you'll need a [perhaps complex] db migration script, and that may leave the layout of dashboards messed up (users would find an empty hole). Personally I'm thinking we could just put the viz type on life support and add a "deprecated" stamp on the thumbnail png, or making it inaccessible from the viz type switcher modal. Eventually could encourage dashboard owners to remove those from their dashboards, maybe some alert when in edit mode. I think the add/edit filter modal needs more options: whether it should be based on a metric, sorting specification, allow_multi_choices. |
I collected following feature requests from open source community, and from Airbnb usage:
These are all proposals. I would like to leave @xtinec who implements this feature to decide final list. Thank you!! |
Is there somewhere to track the progress of these changes? |
I apologize for the lack of updates on this. Our team hit a series of emergencies that took priority over the filter changes. We've only now been able to start the work. Changes will be going into my forked at https://github.com/jaylindquist/incubator-superset/tree/feature/native-filter |
Due to our changing priorities, we have been unable to complete the dashboard level filters feature. You can find our in progress work on my feature branch (https://github.com/jaylindquist/incubator-superset/tree/feature/native-filter) and I can create a PR if you are interested in keeping what we've been able to start. Completed tasks:
The following shows adding filters to an existing dashboard: There is still work to be done:
If you would like me to create a PR for this work, let me know. I apologize for not being able to complete the feature, but other tasks took priority for us. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any update on Cascading filters? |
Hello. Do you have any ETA about native filters? |
Also curious about this. Doesn't look like any work on Jay's branch since 2018. |
=( |
Piling on for the cascading filter logic (i.e. in a multiple-filter widget, only allow combinations that exist as a row in the filter datasource; and some precedence logic, like top-to-bottom). You can achieve the above by creating each filter individually (and setting the precedence logic in the slice immunity configs), but then you lose the option of a single refresh button to prevent all the charts from refreshing when you're in the middle of updating filter selections. So conversely to cascading logic, it would be good to have:
Lastly, a "refresh" button is also good aesthetically if you have a lot of filters, since you have freedom in placing them, vs. a single widget where they all have to be stacked vertically. |
One more thing for filters, it would be great if I could specify 'value' and (optional) 'label' fields, so that I can use more informative names to display in the filter, and pass the more functional value back to a query, e.g. Aggregation Filter:
|
Would love this much needed feature. |
The last commit on the branch mentionned by @mistercrunch is about one year old. Should we consider this feature request dead? Are there alternative plans considered? |
the global idea filter request is good we will move forward to nxt levels |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
We still need this... I recently started using Superset. I loved the tool but filtering constraint is making it hard to sell it to my team who will be working on it. |
Making a list of ideas around how dashboard filters should work in dashboard v2.
Scope awareness. The filter affect only the charts and elements in its scope. Existing scopes should include:
Maybe hovering the filter highlights the charts affected by the filter.
Per-filter configuration:
Making it clear on charts that are filtered, maybe a filter icon that highlight which control are affecting the chart when hovered?
More input is welcomed.
The text was updated successfully, but these errors were encountered: