1

Is there a way to pass url parameters to filter slice? somewhat like http://localhost:8080/superset/dashboard/15/?tableColumnName=value

I have a filter slice on tableColumnName

Suhas Kumar
  • 41
  • 1
  • 8

1 Answers1

3

preselect_filters like below works:

preselect_filters={"76":{"tableColumnName":["value1"]}}

Suhas Kumar
  • 41
  • 1
  • 8
  • A similar discussion is found here. https://github.com/apache/incubator-superset/issues/4985 – Nabin Jul 27 '19 at 05:24
  • this preselect_filters where we have to insert? – Manisha Jun 26 '20 at 11:34
  • @Manisha It should be pass as url params like this ````http://{url}:8088/superset/dashboard/{dashboard_id}/?preselect_filters={{"chart_id"}:{{"column_to_be_filtered"}: {"value_to_be_filtered"}}}```` – ANIL PATEL Mar 01 '21 at 05:31