I have 2 SharePoint lists:-
1) Activities
2) Project Master
now inside the Activities list i have a lookup field to the Project Master as follow:-

now when i am trying to get the activities under a related mater project, i will get a delegation error:-

now if i write the following filter the delegation error will gone, but there will be an issue if two master projects share the same title:-
sort(Filter(Activities,ProjectTitle.Value = varProjectdetails.Title),Created,Descending)
any advice? should i change my lookup setting inside sharepoint to have the ID instead of the title inside the "In this column" dropdown?
Thanks