How to switch departments and view the records?

How to switch departments and view the records?

Departments are listed as a drop down at the top. Refer the below image to switch between the Departments.