Hi,
I have a formula with multiple comboboxes. The items of these comboboxes come from a sharepoint list and are filtered by status value and users that are connected to that items.
Current code in items property is for example:
Distinct(
Filter(
Computers;
Status.Value = "Handed out";
User.Email = UserField.Selected.Email
);
'Asset ID'
)
And the default selected items property is set to the following, to make sure that there are only items selected if a user is selected in a people picker:
If(
!IsBlank(UserField.SelectedItems);
Distinct(
Filter(
Computers;
Status.Value = "Handed out";
User.Email = UserField.Selected.Email
);
'Asset ID'
)
)
Now I have the problem that whenever there are items in that list that have the status "handed out" but the people column is empty, it selects these items by default. But I want it to only show items that have a value in the people column and have the status "handed out".
Can somebody help me how to achieve that?
And I have a question about the people picker, too. How can I filter the users to show only users from a specific department (in this case the IT department)? Items property is set to this:
Choices([@'Worklist - Give back Devices'].'Signed by')
Thank you in advance for helping!