Calculate metrics based on the role associated with each transform.