Doug Creighton
08/16/2024, 9:10 PMMichal Hauzírek
08/16/2024, 9:29 PMSELECT COUNT({dataset/call_topics}) WHERE {label/feedback}="Positive"
In your original metric, I think the calculation engine might get confused by the CASE and constants 1 and 0 as it does not have dimensionality for them. Unlike in SQL where you work directly with columns that exist in tables, MAQL works with attributes and dimensionality and the very same attribute might exist in multiple datasets.
Maybe in your original metric it would need some hint like “`BY {dataset/call_topics})`” but I think the simpler metric with WHERE will be also faster to compute.Doug Creighton
08/19/2024, 1:40 PM