Suzhe Wu
05/20/2025, 1:39 PMSUM(... OVER (PARTITION BY ...))
window function to calculate the total people count, and we expect it to respect the building filters selected by the user. However, it appears that GoodData adds the WHERE
clause outside of the subquery, so the result always includes data from all buildings — even when specific ones are selected.
We’ve tried refining the PARTITION BY
clause and building filters, but GoodData’s SQL wrapper seems to alter the execution order, affecting the expected partitioning logic.
Has anyone else experienced this? Is there a recommended workaround to make the window function respect the building-level filters?
Thanks!Yvonne Changamuka
05/20/2025, 2:17 PMMoises Morales
05/20/2025, 6:58 PMSELECT (RUNNING TOTAL)(...) ROWS BETWEEN (...) AND (...)
SELECT RUNAVG (...) ROWS BETWEEN (…) AND (…)
Moises Morales
05/20/2025, 6:58 PMMoises Morales
05/21/2025, 5:07 PM