3DS Max to DirectX Matrix

Hello,

I’m building my own engine in directx and I came to the point where I’m trying to import meshes.
I installed the FBX SDK and imported a mesh inside my framework.
But, there is one small issue …
In 3DS max the Z-axis is the up axis and in my framework the Y-axis is the up axis.
Is there some sort of algorithm to solve this issue.
I don’t like to swap the y and z axis inside my engine it’s a bit dirty coding and it will not work when a mesh is exported form another 3d software package.
I know that the Unreal Engine can import diffrent meshes, so I was wondering how they did it?
Or maybe tell me the name of the source file so I can look it up myself.
I thought that I could multiply my final transform matrix with another matrix according to what 3d software package the mesh came from.

Kind Regards,
Dyronix