I've been searching the web for a solution to something that's very common. And each solution I come across is slightly different and never quite works for me. So, hopefully if explain everything here, one of you helpful folk with be able to rescue me.
I want to filter employees by their respective departments/teams/sub teams.
I have a data source which is a table created in Dataverse for Teams called, StaffStructures with the following columns:
- Staff_Name (text)
- Staff_Email (email)
- Department (Choices)
- Team (Choices)
- Sub_Team (Choices)
- Managers (Yes/No)
I have four combo boxes:
- Filter_Department with Items = Choices('Department (StaffStructures)')
- Filter_Team with Items = Choices('Team (StaffStructures)')
- Filter_SubTeam with Items = Choices('Sub_Team (StaffStructures)')
- Filter_Employee with Items = StaffStructures.Staff_Name
I also have a Gallery which is connected to a different data source, called WaSS_LeaveRequests and within that gallery is a button which shows an employees initials. The Visible property of the button = ThisItem.Name in Filter_Employee.SelectedItems so when an employees name is selected in the Filter_Employee combo box their name will appear in the gallery.
The part I'm struggling with is: I want to filter the employees within Filter_Employee by their respective Departments, Teams and Sub Teams. Any help would be much appreciated.