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 to get the max val...
Power Apps
Answered

How to get the max value nd so sum by using for all

(0) ShareShare
ReportReport
Posted on by 40
Hi Can some one tell me how to get the max value of each dropdown in gallery and do sum on it I tried the formula Forall(gallery1.all items ,max(tblname,columnname)
Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Sweety ,

     

    Could you please share more about the scenario? What is the Items of the Gallery as well as the Dropdown in the Gallery?  Screenshots would be very helpful.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Sweety ,

     

    I assume you have a gallery and in which there are several dropdowns for each item and a Label to display the max value. If you would like to get the total of all the max value in the gallery, please follow below steps:

    vjefferni_0-1630394615618.png

    1\ Label inside the Gallery set Text to:

    Max(Dropdown1.Selected.Value,Dropdown2.Selected.Value,Dropdown3.Selected.Value)

     

    2\ Label outside the Gallery set Text to:

    Sum(ForAll(Gallery1.AllItems As A, A.Label2.Text),Value)

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard