The denominator term in bayes theorem

I understood that denominator is not necessary to compare but how will we calculate it? i.e. P(X)