grafana: Fix umami weekly users query sorting

This commit is contained in:
2026-03-02 14:15:44 +01:00
parent ff4def0d81
commit 5945146f3c
+3 -2
View File
@@ -15,7 +15,8 @@ WHERE
AND s.distinct_id IS NOT NULL
AND substring(s.distinct_id SIMILAR '%#"@%#"' ESCAPE '#') <> '@oceanbox.io'
GROUP BY
week
week
ORDER BY
week
split_part(CONCAT(EXTRACT(YEAR FROM w.created_at), '-', EXTRACT(WEEK FROM w.created_at)), '-', 1)::int,
split_part(CONCAT(EXTRACT(YEAR FROM w.created_at), '-', EXTRACT(WEEK FROM w.created_at)), '-', 2)::int
;