I have a drop down in my form that looks up and ID from a sharepoint list (Employee Info) and then concatenates the name associated with the ID and puts it in the drop down. What I would like to do filter the names and id in the drop down to only people in the employee info list that have a status of active.
This is my current working code
Sort(AddColumns(Choices('Attendance Tracker List'.TeamMemberID), "Employee Name", (LookUp('Employee Info', ID=Id, TeamMemberName & " | " & TeamMemberID))), 'Employee Name')
If It could be like this somehow that would be good, not sure where to exactly put the filter
Sort(AddColumns(Filter(Choices('Attendance Tracker List'.TeamMemberID),'Employee Info'.Status = "Active"), "Employee Name", (LookUp('Employee Info', ID=Id, TeamMemberName & " | " & TeamMemberID))), 'Employee Name')
Any help is appreciated thanks!