Archived post from 2011. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.
Dwight Specht digs into Analysis Cubes and GP2010: More Retained Earnings Problems over at DynamicsCare.