You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a gauge chart in my dashboard that displays one metric. I apply filters with Jinja templating to the base table. The gauge chart metric doesn't change, not even after a full refresh.
How to reproduce the bug
Add a filter with jinja templating in a dataset, pseudocode similar to my scenario:
SELECT
a.something
FROM table_A a
INNER JOIN table_B b
ON table_A.id = table_B.id
WHERE 1 = 1
{% if filter_values('val')|length %}
AND b.val IN {{ filter_values('val')|where_in }};
{% endif %}
Add a metric in dataset, e.g. COUNT(DISTINCT(something))
Add a gauge chart displaying the metric
Put it on a dashboard
Change filter values
See that gauge chart value doesn't update.
Expected results
Changed metric in gauge chart.
Actual results
Metric in gauge chart stays as if no filter was applied.
Screenshots
No filters set, gauge chart and big number chart with unfiltered metric value:
Filter is set (greyed/whited out, but visible that a filter value was set), big number chart updates, gauge chart doesn't:
Environment
(please complete the following information):
browser type and version: Chrome
superset version: 3.0.1
Checklist
Make sure to follow these steps before submitting your issue - thank you!
I have checked the superset logs for python stacktraces and included it here as text if there are any.
I have reproduced the issue with at least the latest released version of superset.
I have checked the issue tracker for the same issue and I haven't found one similar.
The text was updated successfully, but these errors were encountered:
Closing this as stale, but it's likely stale because it's hard to reproduce. Can you give us a reproducible test case using example charts/data so not as much has to be redacted? If we can make that happen, and the bug is still present in 3.1/4.0, we can revisit/reopen. Thanks!
I have a gauge chart in my dashboard that displays one metric. I apply filters with Jinja templating to the base table. The gauge chart metric doesn't change, not even after a full refresh.
How to reproduce the bug
Expected results
Changed metric in gauge chart.
Actual results
Metric in gauge chart stays as if no filter was applied.
Screenshots
No filters set, gauge chart and big number chart with unfiltered metric value:
Filter is set (greyed/whited out, but visible that a filter value was set), big number chart updates, gauge chart doesn't:
Environment
(please complete the following information):
3.0.1
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: