with p as (select volts*amps as watts, ntile(20) over (order by volts*amps) AS percentile
FROM pdu_timeseries)
select percentile, max(watts) as watts
from p
where percentile >= 15
group by percentile;lstoll/psudata
Utility to track power/charging consumption on macs