Made percentage formatting dependent on unit field, not attribute name.