How to Calculate Pooled P95 Response Time in Excel
Two servers can each publish a P95 response time. Averaging those numbers throws away the order of the original request durations, which is what the combined percentile depends on. In this seven-request example, the pooled P95 is 1,080 ms. The simple average of the server P95s is 678 ms.
A Grafana discussion raises the broader problem of combining precomputed metrics from application instances. If your monitoring system stores compatible latency histograms, use its native aggregation across the same labels and window, then compute the quantile. Prometheus explains why precomputed quantiles cannot generally be combined. If the export contains only node P95 values and counts, the exact pooled P95 cannot be recovered from them alone.
Bring one duration per request
Use the same time window, endpoint scope and duration units across nodes. Keep a request identifier that is unique at the chosen grain, and decide whether a retry is a separate request attempt. Review duplicate IDs, missing or negative durations, and incomplete node exports before reporting a combined number. Keep valid zeros. If the export is sampled or omits timeouts, report that limitation and which requests the statistic covers.
Paste these synthetic records into A1:C8 in Excel. Import them as comma-delimited if needed. The duration column contains numbers in milliseconds. All seven records are in the same five-minute window.
Request ID,Node,Duration ms
R-001,Node A,100
R-002,Node A,120
R-003,Node A,140
R-004,Node A,160
R-005,Node A,180
R-006,Node B,800
R-007,Node B,1200
Calculate the percentile from raw durations
Use PERCENTILE.INC for the inclusive interpolation method in this exercise. Put the percentile fraction in E2 and enter the other formulas below. The node formulas use the sample’s row groups. For another export, group or filter all observations for each node before taking its percentile. Hiding rows does not change a formula’s explicit range.
E2 0.95
E3 =PERCENTILE.INC(C2:C8,E2)
E4 =PERCENTILE.INC(C2:C6,E2)
E5 =PERCENTILE.INC(C7:C8,E2)
E6 =AVERAGE(E4:E5)
E7 =(COUNT(C2:C6)*E4+COUNT(C7:C8)*E5)/COUNT(C2:C8)
For seven sorted values, the inclusive rank is 1 + (7 − 1) × 0.95 = 6.7. The sixth and seventh observations are 800 ms and 1,200 ms. Moving 70% of the way from 800 to 1,200 gives 1,080 ms. Node A’s P95 is 176 ms from five requests and Node B’s is 1,180 ms from two. Their simple average is 678 ms. Weighting by five and two requests gives 462.86 ms. Neither average uses the rank across all seven requests.
Compare results only when the methods match. Inclusive interpolation on raw records can differ from a monitoring dashboard that uses histogram buckets, another quantile convention or a different request population.
Trace the percentile to the requests behind it
Open the request workbook in Jolene.pro and ask for the pooled P95 using inclusive interpolation across a named window. Ask for the number of included requests, the two observations used in the interpolation, and the request IDs and source cells behind them. Reuse the question for the next export and check that its window, units and scope still match.