When using sql sqllab, how to add a filter box for non-display fields to filter #31897
Replies: 1 comment 2 replies
-
In Apache Superset version 4.0.2, the Filter Box feature was removed, and existing filter boxes are automatically migrated to native dashboard filters [1]. This means you can no longer create filter boxes as you did before. To filter non-display fields like SELECT a, b, c
FROM t
WHERE d = 'xxx'
{% if appid %}
AND appid IN ({{ "'" + "','".join(filter_values('appid')) + "'" }})
{% endif %} This approach uses Jinja's conditional logic to include the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
select
a,b,c
from t
where d = 'xxx' and
{% if appid %}
appid in ({{ "'" + "','".join(filter_values('appid')) + "'" }}))
{% else %}
{% endif %}
Example above,please tell me how to solve it.
how to add a filter box for non-display fields (such as appid)?
In version 4.0.2, I could not create a filter box for the appid field
Beta Was this translation helpful? Give feedback.
All reactions