dosubot[bot] commented on issue #35884: URL: https://github.com/apache/superset/issues/35884#issuecomment-3462597816
<!-- Answer --> This is a known issue in recent Superset versions: even when the slice_id in form_data works and the chart renders, filters passed via adhoc_filters or extra_filters sometimes do not apply in embedded slices. This has been reported by other users and is under investigation by maintainers ([discussion](https://github.com/apache/superset/discussions/31964)). Here are some things to check and try: - Double-check that your filter format is correct: for adhoc_filters, use an array of objects with clause, expressionType, subject, operator, and comparator (which should be an array for IN). For example: ```json { "slice_id": 154, "adhoc_filters": [ { "clause": "WHERE", "expressionType": "SIMPLE", "subject": "province_id", "operator": "IN", "comparator": ["11"] } ] } ``` - Make sure the column name matches exactly and is filterable in your dataset. - Some chart types or dataset configs may not support adhoc_filters or extra_filters via URL—try with a simple table or bar chart to isolate. - If you are embedding as part of a dashboard, ensure the dashboardId is included in the form_data for each chart request; missing dashboardId can cause filters or permissions to not apply ([details](https://github.com/apache/superset/issues/33698)). - Check your Superset logs for any backend errors when loading the chart with filters. If all of the above look correct and filters still do not apply, it is likely due to a current limitation or bug in how Superset merges form_data for embedded slices. This is being tracked by the community and maintainers ([see here](https://github.com/apache/superset/discussions/31964)). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1130d1e3-f2f7-4bd3-a096-1ab584175e7d?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35884) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
