Debe obtener los registros totales sin WHERE
filtro Y el total de registros con WHERE active=1
. Esto le permitirá calcular un valor porcentual de 0 a 100.
[total active=1] / [total records] * 100 = [percent from 0 - 100]
Ejemplo:7293 / 14586 = 0.5 * 100 = 50%
Ver:https://en.wikipedia.org/wiki/Percentage