I have an OnChange event on a DropDown box where I'm creating a collection as following:
ClearCollect(
collectNearmissUserInfo,
{
Email: Text(cmbCreatedOnBehalfOfColleague.Selected.Mail),
Dept: LookUp(Users, 'User Name' = "xx@xxx.xx").'Department XX'.Department
}
);
I now want to use the "Dept" value (which value is A100) to insert into a LookUp:
LookUp(Departments, Department = collectNearmissUserInfo.Dept).Brand
But it gives me an error saying: "Incompatible types for comparison. These types can't be compared: Text, Table"
What am I missing, pls help 🙂