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

Announcements

News and Announcements icon
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!"
Screenshot 2024-10-24 154310.png
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard