Meaning of “whole” - Learner’s Dictionary

whole

noun uk us /həʊl/
the whole of sth

B1 all of something:

His behaviour affects the whole of the class.
as a whole

B2 when considered as a group and not in parts:

The population as a whole is getting healthier.
on the whole

B1 generally:

We've had a few problems, but on the whole we're very happy.

(Definition of “whole noun” from the Cambridge Learner’s Dictionary © Cambridge University Press)