Hi,
I have three SharePoint lists:
- One list "Cases List";
- One list "Documents List", which has one Lookup field "Case" matching the ID of an item in the list "Cases List";
- One list "Reviews", which has one Lookup field "Document" matching the ID of an item in the list "Documents List".
I am desperately trying to get a Gallery or Data table listing items in "Cases List" whose ID would be in the Lookup field of items in "Documents List" whose ID would be in the Lookup field of items in "Reviews" that respect a certain condition (3 steps).
In other words, I need to retrieve items according to cascaded one-to-many relationships.
I spent hours trying many different ways io order to figure out a code that would satisfy delegation requirements, without success. Actually, "Cases List" could quickly reach more than 20,000 items, with several documents per case and several reviews per documents).
Moreover, I do not understand on of the most elegant attempts I did:
Filter('Cases List',
ID in Filter(
'Documents List',
ID in Filter(Reviews, Reviewer.Email = varUserEmail).Document.Value
).Case.Value
)
Here is the syntax error I get: Name isn't valid. This identifier isn't recognized.

I know the use of "IN" operator is not delegable, but in case there is no other solution to make it work with SharePoint lists, I will consider using SQL, which supports delegation on "IN" operator. I could also consider changing to Dataverse if it allows me to enforce delegation.
Any help would be greatly appreciated ! 😊
Many thank in advance