Calculating the relative share over a dimension