Linking employees to class of company

I have an Employees object linked to a Companies object in my customer database. I need to be able to sort and filter by the class of company among these employees, but I'm unable to select {Company.Class} in the text formula field, even though the two objects are linked via Company. What am I doing wrong?