superset icon indicating copy to clipboard operation
superset copied to clipboard

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

Open shrutimkrishnan opened this issue 9 years ago • 7 comments

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
  • [x] 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

shrutimkrishnan avatar Aug 10 '17 02:08 shrutimkrishnan

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

mistercrunch avatar Aug 10 '17 05:08 mistercrunch

@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

shrutimkrishnan avatar Aug 11 '17 08:08 shrutimkrishnan

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

mistercrunch avatar Aug 11 '17 15:08 mistercrunch

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

shrutimkrishnan avatar Aug 11 '17 17:08 shrutimkrishnan

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.

mistercrunch avatar Apr 23 '18 05:04 mistercrunch

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

applechip avatar Feb 03 '21 19:02 applechip

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?

matheusbsilva avatar Mar 27 '24 16:03 matheusbsilva