Hi @Anonymous ,
You can certainly restrict this in a number of ways.
There are many other possibilities including adding have a control list with the user's email and their department - I will call it RefList and the fields RefDept and UserEmail in the example below. A gallery Items property would be
Filter(
YourDataSourceName,
Lookup(
RefList,
UserEmail = User().Email
).RefDept = Department
)
Also if you want to only display the records created by the logged-in user, you can have a gallery with the Items property
Filter(
YourDataSourceName,
'Created By'.DisplayName = User().FullName
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.