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 / Get sum of distinct va...
Power Apps
Answered

Get sum of distinct values in gallery

(0) ShareShare
ReportReport
Posted on by 60

Hello , i have a table with 2 columns. One with Email addresses called "Person" and one column with a total of minutes called "Minutes". How do i get a gallery with 2 columns. The first column with the distinct values of the email addresses. For the second column i need the calculated sum for all the "minutes" for that email addres.

 

Example :

 

bla@gmail.com    | 5

bla@gmail.com  | 5

gru@gmail.com  | 20

 

Will result in :

 

bla@gmail.com  | 10 

gru@gmail.com  | 20

Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    referencing a SPList with that structure you can set a gallery items to

    GroupBy(SharePointListName, "Person", "recordList")

     

    In the gallery place two controls, one with the Text Value of

    ThisItem.Title

     

    and the other

    Sum(ThisItem.recordList, Minutes)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard