Just to be clear, the above pulls department of the currently logged in user. If you instead want a column formula for the department of whatever user is chosen in a row, it’s
thisRow means the row of the table this formula is in
CurrentValue means a row in the other table that is currently being evaluated by the filter (the filter will loop over all rows of the other table looking for a match)