Serum levels of vit D and Magnesium are not reliable indicators. As stated in the study for Magnesium. For Vit D, efficiency of a supplementation of Vit D3 is also not on par with real sun exposure, the skin and subcutaneous fat don't seems to respond the same way.
I sadly did not had any improvement on my side from getting my Vit D level from 15 (which is barely above the deficiency level) to a whooping level of 60 in a few month with Bio-D-Mulsion drops (Vit D3). My mag must be high as I eat a very rich diet in this nutrient, without any dairy from more than a decade now