sfirke opened a new issue, #20961: URL: https://github.com/apache/superset/issues/20961
My mixed chart (with stacked bars and a five year rolling total line) on a dashboard starts off correct, but after some filtering on the dashboard, the filter conditions persist only with the rolling total line (Query B). Here's the current state of the dashboard - see no filters applied and I've removed the filter related to bicycles:  Note that the Five Year Rolling Average line is way at the bottom, that's the problem due to the incorrectly-persisted filtering. Then I click View Query and can see that the correct filtering is applied to the stacked bars (Query A) but a lot of previous filtering is also applying to the rolling line, Query B: **Query A SQL** ``` SELECT TOP 10000 DATEADD(YEAR, DATEDIFF(YEAR, 0, [CrashDate]), 0) AS [CrashDate], [GretInjSev] AS [GretInjSev], COUNT(*) AS count FROM dbo.[RoadsoftCrashes] WHERE [GretInjSev] IN (1, 2, 3, 4, 5) AND [NFC] IN (N'3', N' 4', N' 5', N'6', N'7') GROUP BY DATEADD(YEAR, DATEDIFF(YEAR, 0, [CrashDate]), 0), [GretInjSev] ORDER BY count DESC; ``` **Query B SQL** - Lots of extra filtering incl. a repeated filter and the bicycle filter which I've since deleted: ``` SELECT TOP 10000 DATEADD(YEAR, DATEDIFF(YEAR, 0, [CrashDate]), 0) AS [CrashDate], COUNT(*) AS count FROM dbo.[RoadsoftCrashes] WHERE [GretInjSev] IN (1, 2, 3, 4, 5) AND [NFC] IN (N'3', N'4', N'5', N'6', N'7') AND [GretInjSev] IN (1, 2, 3, 4, 5) AND [GretInjSev] IN (1, 2, 3, 4, 5) AND [Bicycle] IN (1) AND [GretInjSev] IN (1, 2, 3, 4, 5) GROUP BY DATEADD(YEAR, DATEDIFF(YEAR, 0, [CrashDate]), 0) ORDER BY count DESC; ``` ### Environment (please complete the following information): - Firefox - superset version: 2.0.0 - any feature flags active: `ALERT_REPORTS, ENABLE_SCHEDULED_EMAIL_REPORTS, DASHBOARD_RBAC, GENERIC_CHART_AXES, EMAIL_NOTIFICATIONS` ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. -- 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]
