This is my first time creating a model driven app, the system is a approval system where tasks should only be seen by approvers if they belong to a certain department. so end user interface is a power pages portal and the admin portal is the model driven app. we have a table called Assignments and for every assignment there is a corresponding department. just a snippet of the relevant tables for my question.

I created a view of the main Assignment table called "Items for review" . What i need is filter out the items that are assigned to the current department of the currently logged in user. so if the user's department is HR then that person should only be able to see the HR assignments items. I cant seem to find a way to filter the view dynamically, it only gives me the hardcoded options for department which is in the choices.