web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegation Warning and...
Power Apps
Unanswered

Delegation Warning and Using SUM with Filter Lookup in Power Apps

(0) ShareShare
ReportReport
Posted on by
"I am facing a delegation warning when trying to use the SUM function on a table that includes a Lookup column in Power Apps. I am working with the 'Construction (dev)' table and filtering based on Project_Capex.Id using the SUM function. I also want to sum values from a column that uses the LookUp function from another table, Status_Construction_Choice, to get the Parameter value based on Status.Id.
Here is the formula I am using:
Sum(
  Filter('Construction (dev)', Project_Capex.Id = ThisItem.ID),
  LookUp(Status_Construction_Choice, ID = Status.Id).Parameter
)
I am getting a delegation warning saying that Project_Capex.Id cannot be delegated when trying to filter the data. I have tried different approaches, but the delegation warning persists. I am unsure how to properly optimize this formula to avoid the delegation issue.
How can I resolve this delegation warning? Is there a better way to use the SUM function on data that includes a LookUp from another table? How can I delegate both the filter and lookup efficiently? Thanks for your help!"
I have the same question (0)
  • Nandit Profile Picture
    1,568 Moderator on at
     
    Quick question - where is this table coming from - SharePoint / Dataverse / Others? 'Construction (dev)' 
    Also I don't think your syntax is correct, Sum expects a Data Source and the column you want to sum the values of:
    Sum(Filter('Construction (dev)', Project_Capex = ThisItem.ID, ColumnName)
    Would be great if you could explain what part is LookUp playing in your function, I will be happy to assist you. 
     
    Kind regards, 
    Nandit
     
     
  • Nandit Profile Picture
    1,568 Moderator on at
    Hi,

    Following up to check if you were able to solve this issue using my suggestion?

    Kind regards,
    Nandit

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard