Combining Devices into a single graph

Is it possible to merge graphs or at least create an SQL-esque view for a particular device type?

eg: we have a bunch of unifi APs, and each of them individually reports the number of clients connected, but there seems to be no way to see the sum total of all clients connected across all APs.

Similarly, we’d like to be able to merge all of the data throughput for the APs, to see a um total of all data cross the wireless.