Problems with HMC5883L

Of course, every sensor will have a different correction factor for Y or X.

If you want any accuracy at all, there are 6 correction factors for a 3D compass.