P90,p95,p99 metric values are not showing properly in html report

As per my knowledge in K6, I’ve been using this K6 tool for the past 3 years, and I have observed that metric values are not showing the correct values in the HTML report as aggregated values.

Those values do not match with raw data values when I calculated the p95 or p90 value based on the rank formula

First, sort the values in ascending order, then find the rank of the value based on this formula.

R = Math.round(P*N)

P = 95/100 = 0.95
N = total number of data points
R = Rank

Can you please correct me if I’m wrong, and can you let me know how exactly the values are calculated and displayed in html report?
How exactly does that summary data collect the metrics across all the data points for each request or group?

Just FYI.., I raised an open issue in the k6-report repo last month. Here is the link