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 formula for a numb...
Power Apps
Unanswered

Sum formula for a number of items in a SharePoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello -

 

I have an app built using SharePoint as my data storage. I would like to take one of my columns (called RAU) with a variety of different categories and calculate the total number of records in the list and break the sum down by each category.

 

I’m trying to build out a dashboard that will allow my users to see the number of records by each category in that column.

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @epannell3223 - you can leverage the GroupBy function. For example, you can apply the below to the Items property of a Gallery:

     

     DropColumns(
     AddColumns(
     GroupBy(
     'Your Data Source',
     "Your Category Column",
     "GroupedItems"
     ),
     "Sum Value",
     Sum(
     GroupedItems,
     'Your Number Field'
     )
     ),
     "GroupedItems"
     )

     

    Or generate the same table using a Collection:

     

    ClearCollect(
     MySolution,
     DropColumns(
     AddColumns(
     GroupBy(
     'Your Data Source',
     "Your Category Column",
     "GroupedItems"
     ),
     "Sum Value",
     Sum(
     GroupedItems,
     'Your Number Field'
     )
     ),
     "GroupedItems"
     )
    );

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard