Thomas Karbe
04/04/2025, 8:39 AMMichal Hauzírek
04/04/2025, 9:09 AMSELECT {metric/TicketVsConversionRate} WHERE TOP(10) IN (SELECT {metric/ticketVolume} BY {attribute/customer_id}, ALL OTHER)
This internally calculates the metric ticketVolume by customerID and takes top 10 customers based on this metric. And only for those customers calculates the TicketVsConversionRate.
It is not as universal as it would in the UI and would require special top 10 filtered metric (and that 10 is hardcoded there) but it could work for your case.Michal Hauzírek
04/04/2025, 9:13 AMThomas Karbe
04/04/2025, 9:48 AM