Skip to content
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

Filter box on a metric #9502

Closed
3 tasks done
jpetot opened this issue Apr 10, 2020 · 6 comments
Closed
3 tasks done

Filter box on a metric #9502

jpetot opened this issue Apr 10, 2020 · 6 comments
Labels
inactive Inactive for >= 30 days

Comments

@jpetot
Copy link

jpetot commented Apr 10, 2020

Hi,

I want to create a filter box for my dashboard.
I want to apply the filter control on a metrics (not a columns)

Expected results

I expect metric or custom sql space in the filter controls bar

Actual results

currently I can only choose my columns

Screenshots

Capture d’écran 2020-04-10 à 16 19 14

Environment

(please complete the following information):

  • superset version: superset website
  • python version: python --3.7
  • node.js version: node -v
  • npm version: npm -v

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

@jpetot jpetot changed the title Filter box on a metrics Filter box on a metric Apr 10, 2020
@thunderbird57
Copy link

I have exactly same problem

@mistercrunch
Copy link
Member

The filter box "visualization" could have an option to reuse the FilterControl. In theory this should work

@mistercrunch
Copy link
Member

mistercrunch commented May 22, 2020

Workaround idea: creating a "bracket" column either as a physical column or as an expression. Ex: instead of an integer age column, you can expose a 0-9, 10 to 19, ...

But that's just a workaround. Curious how other dashboarding tools do it. I remember seeing range sliders and such on other tools.

@thunderbird57
Copy link

Workaround idea: creating a "bracket" column either as a physical column or as an expression.

Yes this work in cases where we have static ranges known. We have created some calculated columns to define filter ranges and then use it dimension filters.

@mistercrunch
Copy link
Member

mistercrunch commented May 22, 2020

Longer term we want to make filter box as a dashboard native component (as opposed to the current "special visualization" status) and completely redesign it. SIP-34 touches on some ideas around contextual filter bars.

@stale
Copy link

stale bot commented Jul 25, 2020

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 .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Jul 25, 2020
@stale stale bot closed this as completed Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

3 participants