The barometric altimeter needs to calibrate against GPS elevation. As GPS reception is often poor inside or between buildings, it is not surprising you will get wacky or no elevation readings if inside for long periods of time, especially if the barometric pressure changes due to weather.
It would be more meaningful to try it outdoors, or at least not be inside for a long stretch.