Hello! I am trying to understand the <MAQL WITHIN ...
# gd-beginners
k
Hello! I am trying to understand the MAQL WITHIN (ALL ATTRIBUTE) in the documentation: • What I understood is that it would compute the metric by any other attribute subgroups of the visualisation than the one specified in the WITHIN ALL clause (as well as any other attribute in the same dataset). • But the provided example does not correspond to what I understood. The visualisation include the following attribute subgroups: Region, Vertical and Sales Rep. So the metric
SELECT RANK ({metric/{amount_won}) DESC WITHIN (ALL {attribute/vertical})
should compute the ranking by each subgroup (Region, Sales Rep), ignoring vertical. While in the resulting visualisation, the ranking is not by (Region, Sales Rep) subgroups nor even by (Region). Is it because maybe the attributes Region and Sales Rep are in the same dataset as Vertical ? Thanks for you help!