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 / How can I calculate th...
Power Apps
Answered

How can I calculate the max value in a collection table?

(0) ShareShare
ReportReport
Posted on by

Hi everyone, I created a table collection on Power Apps. The table has the column named "NType", "ID" which stores numbers, with those numbers I can locate records in another SharePointList, "Email" which stores the email of the persons who create the record and column "Votes" which counts the number of votes left for the specific record. A person can leave more than 1 vote for a record. On my Power Apps based on this table, I would like to obtain Informations such as the ID with the most votes (I belive I would need to count these) and to know as well the ID's with the most votes for the diferents NType "S, "T" and "A". How can I display such results?

Categories:
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @esilvac ,

     

    We made a sample for you.

    vhanytianmsft_0-1692584284100.png

    Max ID:

    "MaxID:" & LookUp(Col,Max(Col,Votes) = Votes,ID)

    vhanytianmsft_1-1692584912298.png

    "MaxID-T:" & LookUp(AddColumns(GroupBy(Col,"NType","NTypeGroup"),"MaxVote",Max(NTypeGroup,Votes),"MaxID",LookUp(NTypeGroup,Max(NTypeGroup,Votes) = Votes,ID)),NType = "T",MaxID)

    vhanytianmsft_2-1692584974434.png

    Hope this will help you,

    Best Regards,
    Tina

     

     

  • esilvac Profile Picture
    on at

    hello, thank you so much! This helped me a lot! 🙂

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard