Actually I think I just figured this out. 
I used a Data Table to visualize this:
Metrics
Sum Bucket Metric
- Sum Bucket Aggregation
- Date Range Aggregation
- @timestamp Field
- From: now/d-10 To: now
Average Bucket Metric
- Average Bucket Aggregation
- Date Histogram Aggregation
- @timestamp Field
- Daily Interval
Buckets
- Split Rows
- Terms Aggregation
- errorNo field
- Order by Custom Metric: Count
