calculate average based on histogram for metrics not available