diff --git a/posthog/hogql_queries/web_analytics/stats_table.py b/posthog/hogql_queries/web_analytics/stats_table.py index 862d2830c9fba..8b5ff36f76df3 100644 --- a/posthog/hogql_queries/web_analytics/stats_table.py +++ b/posthog/hogql_queries/web_analytics/stats_table.py @@ -564,7 +564,8 @@ def where_breakdown(self): return parse_expr("tupleElement(breakdown_value, 2) IS NOT NULL") case WebStatsBreakdown.VIEWPORT: return parse_expr( - "tupleElement(breakdown_value, 1) IS NOT NULL AND tupleElement(breakdown_value, 2) IS NOT NULL" + "tupleElement(breakdown_value, 1) IS NOT NULL AND tupleElement(breakdown_value, 2) IS NOT NULL AND " + "tupleElement(breakdown_value, 1) != 0 AND tupleElement(breakdown_value, 2) != 0" ) case ( WebStatsBreakdown.INITIAL_UTM_SOURCE