I have a Data Verse LookUp Column which looks up Users Table in Data Verse, and is a Data Card on the form whose Data Source is the 'Employee Details' table.
The above combo box shows all the lists of users in my tenant, that I can choose from.
The 'Employee Full Name' column in Data Verse is the shown in the following:
How would we Filter the Data Card control to show all the users except the users that have already been picked. i.e. all users except 'Jane Smith'; 'Sarah Jones'; 'Jone Doe'.
Thank you for your guidance.
You can add a Dropdown control to the form and set its Items property to a formula that returns a filtered list of users. Here's an example of how you can do this:
Filter(Users, !(User in Employee_Details))
In the above formula, Users is the name of the Users table in Data Verse, and Employee_Details is the name of the Employee Details table. The Filter function returns all the records from the Users table where the User is not in the Employee_Details table.
In the Data Card for the 'Employee Full Name' column, set the control's Visible property to false. This will hide the original Lookup control from the form.
Set the Dropdown control's DefaultSelectedItem property to the following formula:
First(Filter(Users, !(User in Employee_Details)))
With these steps, you should be able to filter the Data Card control to show all the users except the ones that have already been picked in the 'Employee Details' table.
Hi @qxaziz123,
Here is a demo for your reference.
Note that the 'Lulai Trackers' is the many table including the LookUp column ‘The Food’. In your scenario, you should replace it with 'Employee Details' table that has a lookup column named 'Employee Full Name' column. And the 'Food Name' is the column in my another table where the lookup column named 'Employee Full Name' retrieves values from.
Create a collection to save the LookUp column values as:
ClearCollect(colLook,ForAll('Lulai Trackers'.'The Food','The Food'.'Food Name'))
Set the Items property of the ComboBox as:
Filter(Choices('Lulai Trackers'.'The Food'),!('Food Name' in colLook))
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional