I have 2 drop downs and a gallery. Customers & Projects are entities in Dynamics Finance and Operations. Dropdown 1 and 2 are working just fine.
DropDown1 - Sort(Customers, Name, Ascending)
DropDown2 -Distinct(Filter(Projects, 'Customer account' = CustomerNameDD.Selected.'Customer account'),'Project stage')
Gallery
Filter(Projects, And('Customer account' = CustomerNameDD.Selected.'Customer account', ('Project stage') = ProjectStageDD.Selected.Result))
The Gallery has the Red error indicating "The Requested operation is invalid. A binary operator with incompatible types was deteced. Microsoft.Dynamics.DataEntities.ProjStatus and Edm.String for operator kind Equal
If I change the foruma to use a in my values return however now we are dealing with the 500 record delegation issue.
Filter(Projects, And('Customer account' = CustomerNameDD.Selected.'Customer account', ('Project stage') in ProjectStageDD.Selected.Result))
I found another person with the same error using Dynamics 365 and it was reccomended ot use the lower function on the column. I decided to try this on the Project stage on DropDown2 and the Gallery filter resulting in lowering all characters to lowercase.
DropDown2
Distinct(Filter(Projects, 'Customer account' = CustomerNameDD.Selected.'Customer account'),Lower('Project stage'))
Gallery
Filter(Projects, And('Customer account' = CustomerNameDD.Selected.'Customer account', Lower('Project stage') = ProjectStageDD.Selected.Result))
Strange enough, this works now and is returning values in the Gallery and it's not using the = function however suprisingly I am once again getting the Delegation warning about 500 records. This application will return over 500 within a few months of launching. Any guidance here would be apprciated.