In this paper we present a class of exact inhomogeneous solutions to Einstein's equations for higher dimensional Szekeres metric with perfect fluid and a cosmological constant. We also show particular solutions depending on the choices of various parameters involved and for dust case. Finally, we examine the asymptotic behaviour of some of these solutions.