GitHub user dosubot[bot] added a comment to the discussion: Filtered Chart Data via API
<!-- Answer --> Filtering via the `/api/v1/chart/data` endpoint is fully supported in Superset 4.1.3, and the payload should include a `filters` array inside each query object, with each filter specifying `col`, `op`, and `val` keys. If filtering isn't working, common causes are typos in column names, unsupported operators, datatype mismatches, or database driver limitations. The API will return a validation error if the payload is malformed, or sometimes a `rejected_filters` section in the response if a filter fails to apply [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/schemas.py). Could you share a sample of your actual API request payload and the full response (including any error messages or unexpected results)? That will help pinpoint the issue. Also, double-check that your column names and filter values match the dataset exactly, and that you're using supported operators like `==`, `LIKE`, or `IN`. If you see a validation error or unexpected output, let me know what it says—I'll help you troubleshoot! <!-- 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/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/43476f6a-1984-4eb4-a43b-9115305b680c?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](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/discussions/34668) GitHub link: https://github.com/apache/superset/discussions/34668#discussioncomment-14091322 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
