Simpson's paradox is a statistical phenomenon where you can measure one outcome in aggregate (e.g. total average pay by gender) and the opposite outcome when you segment (e.g average pay by gender AND job).
Univariate analyses can hide lots of interesting things!
https://en.m.wikipedia.org/wiki/Simpson's_paradox