How to compare multiple companies within the same industry using fundamental analysis?

How to compare multiple companies within the same industry using fundamental analysis?

What are the factors that can impact a company’s earnings and revenue growth?