I have a gallery control in PowerApps and its Items property is set to the following function:
Filter('My SharePoint List', 'My Lookup Column'.Id = 1)
This is giving me a delegation warning which is confusing based on the documentation found here:
https://docs.microsoft.com/en-us/connectors/sharepointonline/#power-apps-delegable-functions-and-operations-for-sharepoint
From that article it says that a Complex field (e.g. Lookup Column) is delegable based on the subfield involved. So in this case the "Id" field is treated as a "Number" in PowerApps. However the "ID" field only supports the "=" operator. So why am I getting a delegation warning while using the formula above?
Delegation Notes From Article:
Your proposed solution seems to work, but I get an incompatible type warning?
I need to use the Text() function to remove it like so:
Filter('My SharePoint List', 'My Lookup Column'.Value = Text(1))
Is this happening on your end as well?
Hi @ZachS15 ,
Do you mean that Id for lookup field is not delegate?
I've made a similar test and met the same problem.
Here's an alternative solution:
set ID as the lookup field's related field.
Then you could use lookupfield.Value to represent that ID value.
Filter('My SharePoint List', 'My Lookup Column'.Value = 1)
Here's a similar issue for your reference:
Best regards,
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72