How to show top 10 hosts by UAP

Hi guys, I need help with grafana and influxDB.

I have a dashboard with this graph, which shows all of my Access Points and the amount of users connected to each of them. I have 294 APs in this environment but I only need to be shown in this graph the TOP 10. In other words, I need only the first 10 APs that contains de majority of devices connected by time.

How can I get this? I’ve tried the top () but I couldn’t get any result.

I would appreciate some help.