Hi,
I am new to powerapps and cannot really understand what is going on. I have a default EditForm that is connected to a dataverse table Customers. The column WaitingLocation uses an option set list and this column is added to the EditForm.
I have changed the Items property of the dropbox to the following, because i want to display the current waiting customers for each location:
AddColumns(Choices(WaitingLocations);'Waiting customers';$"Waiting customers: {CountIf(Customers; CustomerState = [@CustomerState].Waiting And WaitingLocation = Value)}")
Everything works fine but when the SearchField property of the Combobox is set to "Value", the error "Function Search has invalid arguments" pops up. When I set it to "Waiting customers", the designer is happy.
Why is that? When i just use Choices(WaitingLocations) as Items, it also works.