Malthe
Valued Contributor II

Note that sometimes, Genie also generates FILTER expressions:

SELECT MEASURE(`deviceCount`) FILTER(WHERE `isActive` = TRUE)

 It seems that the underlying model is unable to accurately grasp the grammar around the MEASURE function.