Hey all, I'm having trouble coming up with a solution for a gallery filtering problem I have.
I have a search box for my gallery and my gallery items property is set to: If(IsBlank(SearchInput.Text),Filter(Assignments,UserID='User List'.Selected.UserID),Filter(Offices, SearchInput.Text in OfficeName))
The gallery item text labels are set to LookUp(Offices,ID=ThisItem.OfficeID,OfficeName)
So the gallery is showing office assignments based on a selected user in another gallery and displaying the name of the office rather than it's ID. The problem I am having is in the first formula:
If(IsBlank(SearchInput.Text),Filter(Assignments,UserID='User List'.Selected.UserID),Filter(Offices, SearchInput.Text in OfficeName))
If the search box is blank, then show office assignments for the selected user, otherwise filter by whatever is in the search box. I need a way to include the Filter(Assignments,UserID='User List'.Selected.UserID) in the second half of this formula. Currently, when you do a search it will return all office names regardless of if they are assigned to the user. So I need to be able to filter the list based on the search term, but only show results if they are assigned to the userID. Hope that makes sense.
Any help is appreciated!