Compass not calibrated

Hello,
Using Google maps or Sky map, I always get the message that the compass needs calibration, I do the procedure rotating the tablet but it doesn’t work, please help.

Regards.