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

Put filters in an array instead of filters on strings only on Dashboard #3269

Closed
1 of 3 tasks
shrutimkrishnan opened this issue Aug 10, 2017 · 7 comments
Closed
1 of 3 tasks

Comments

@shrutimkrishnan
Copy link

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 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

Superset version

0.19.0

Expected results

Want the ability to filter the dashboard with an array rather than string values only. Example:
image

Actual results

Only able to filter based on set string values
image

Steps to reproduce

As shown above

@mistercrunch
Copy link
Member

You can probably write a WHERE clause that would do that can't you?

@shrutimkrishnan
Copy link
Author

shrutimkrishnan commented Aug 11, 2017

@mistercrunch Need to give the user the ability to filter A1 or A2 on their own from the filter slice... Otherwise we end up having to duplicate rows of data to both A1 and A2 just to make it work with a defined string.

Sent from my Google Pixel using FastHub

@mistercrunch
Copy link
Member

there's a like option in the dropdown, what about picking that and writing %A1%?

@shrutimkrishnan
Copy link
Author

shrutimkrishnan commented Aug 11, 2017

@mistercrunch Gives an error message - 'dict' object does not support indexing

@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 254 days. Feel free to comment and request for this issue to be reopened.

@applechip
Copy link

Any chance this issue can be reopened? I know there is a workaround using Jinja templating but that is inconvenient.

@matheusbsilva
Copy link
Contributor

UP I'm facing the same issue on version 3.0.0. I can't filter a field of type string array by searching for a value inside of the array, I know I can write a custom SQL query to filter the chart but I can't do the same in dashboards. Is there any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants