You'll want to look at the average to get the rms over the whole track.
However, one should always avoid compressing/processing by the numbers. Use your ears, not your eyes. Wether something 'needs' compression is entirely down to what you want the end result to sound like - there is more than...