If you set "Allow multiple runs" on, and you already had many events selected (usually that isuser-defined hardware event-based sampling data collection), all events willbegrouped into several runs.
For example, I have a simple program which has5threads duringdata collecting, I selected 40 events to run, finally it had 12 runs - report showed 60 threads for summary. You know someevents are foundin specific run, in timeline - youcan seeUOPS_RETIRED.ANY in last run, not in other time range. See below -
You have toselect time rangethen do"Zoom-in/Filter-inon selection", to know CPU_CLK_UNHALTED.THREAD count from this time range (not from Summary), then use it in formula.
If CPU_CLK_UNHALTED.THREAD was not counted in time range, you can get it by calculating - delta_time_range (s) * CPU_Frequency.