I’m having same issues of average costing not calculating and tried to fixed through IA but nothing changed. In your case, probably the transactions were in closed periods where system calculations were not complete. Probably if you open the closed periods , it will calculate again!