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 / Sum on filtered column...
Power Apps
Answered

Sum on filtered columns using Sharepoint lists: Error when trying to retrieve data from the network

(0) ShareShare
ReportReport
Posted on by 36

Hi everyone,

This is probably a stupid question but I've done some online searches and can't find the answer I'm looking for so please bear with me. 

 

The situation:
I'm creating an app to keep track of CPD points for the people in our company.

I'll be keeping all of the data in one Sharepoint list so I don't have to do a separate list for each person. The idea is that when they log on, they'll only see their CPD points and no-one elses. 

 

I also want them to see the total of their CPD points, rather than the ones they've earned for each session. So for example, if I've done two courses worth 5 points each, I want the display to be something along the lines of:

 

"Your current CPD score is: 10 points".

 

The relevant columns in my Sharepoint list (CPDsessions) are:

Points (Number field)

Person (Person field)

 

I've connected the list to a Sharepoint table with the following columns:

 

Katdragon_0-1685491690360.png

 

I know that I have to filter the results of the table display so they only show a specific person (which I've figured out how to do), and then sum the points in the filtered results. The only problem is that although it works on my computer, when I test it on someone else's login, I get the "Error when trying to retrieve data from the network" message and although I can get it to display the current user, I don't get anything in the sum text display.

 

Here's my current code:

 

Sum(
 ForAll(
 Filter(
 CPDsessions,
 Person.DisplayName = User ().FullName
 ),
 Points
 ),
 Value
)

 

 

I've set the permissions of the person to Member on the list and on the PowerApps page so I'm not sure if I've done anything else wrong.

 

Thanks so much!

Categories:
  • WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    HI @Katdragon ,

    I think you just need this - as long as the list is shared with at least View permissions

    Sum(
     Filter(
     CPDsessions,
     Person.DisplayName = User().FullName
     ),
     Points
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Katdragon Profile Picture
    36 on at

    Hi @WarrenBelz 

    I did try this before but I got the following message:

    Delegation warning. The highlighted part of this formula might not work correctly on large data sets. The "Sum" operation is not supported by this connector.

     

    That's why I put the "ForAll" in there.

    I did have a look at your blog to see how I could fix this but I couldn't figure out how (my brain isn't working today - not enough sleep!)

     

  • Verified answer
    WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    @Katdragon ,

    ForAll just masks the problem (it does not solve it) as it is also a Delegation limitation on the output and therefore on the number you can Sum(). You are better doing this

    With(
     {
     wData:
     Filter(
     CPDsessions,
     Person.DisplayName = User().FullName
     )
     },
     Sum(
     wData,
     Points
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Katdragon Profile Picture
    36 on at

    Hi @WarrenBelz ,

    As always, you are an absolute star! I'm going to go and read up on the With function to make sure I know this for next time.

  • WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    Hi @Katdragon ,

    This blog of mine should help you here.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard