The joint decomposition of the Pietra index