On the Month End Current Revaluation form in the month End close process there is a Department field which Help says "This value will also be used to populate the gain/loss line in the revaluation GL Impact, as well as other lines if the department value is mandatory on journal entries."