The problem it is inside the CountRows Function, this is not delegable
my recomedation it is store this filtered in a separeted collection, and after do this, you can use the CountRows function inside the collection, something like this:
ClearCollect(colTemp,Filter('MyDataSource', Year = ThisItem.LYear && MyPerson.Email = ThisItem.MyPerson.Email));
If(
CountRows(
colTemp
) > 1,
true
,false
)
-------------------------------------------------------------------
If my reply helped you, please give a 👍
If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it.