Skip to main content

Notifications

Community site session details

Community site session details

Session Id : vurBZ4OMI7kVCDhyrJzoE+
Power Apps - Building Power Apps
Unanswered

Calculate the sum of data from Sharepoint, filtering by users' email

Like (1) ShareShare
ReportReport
Posted on 12 Jul 2024 02:52:42 by 27

Hi All, 

 

I am struggling with the formula below. 

There are two columns in the Sharepoint list: "Data Collection", "Ranking" and "Calculate Ranking"

"Ranking" stores a number, and when it meets a specific condition, times 1, and the result will show in "Calculate Ranking"

So "Ranking" is a number field, and "Calculate Ranking" is a calculated field.  The data type of both columns is "Number"

 

I want to add a text field in Power App that calculates the total "Calculate Ranking" of the user filling in the form. 

Here is the formula:

Sum(Filter('Data Collection', 'Modified By'.Email = User().Email, 'Calculated Ranking'))

 

However, it is not working with the below warning:

Expected Number. We expect a number at this point in the formula. 

 

It would be appreciated if you can solve this. Thanks a lot.

  • Michael E. Gernaey Profile Picture
    41,969 Super User 2025 Season 1 on 12 Jul 2024 at 03:27:14
    Re: Calculate the sum of data from Sharepoint, filtering by users' email

    Hi @Quincy_Chan 


    Can you please, post the actual Code and where the error is.

    Also, doing things on Calculated columns are usually a no no to make work properly.

     

    For a just check... and it would prove what I'm telling you. Remove 'Calculated Ranking' and put Ranking, which you said is just a number.

     

    See if the Sum error goes away. As thats where I assume the error is.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 48 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 36

Overall leaderboard