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 gallery of text in...
Power Apps
Answered

Sum gallery of text inputs gives wrong answer

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

chongyian_0-1673857533250.png

I have a gallery of textboxes, and am trying to sum it under "Total Write Off Amount", but it gives [number of rows]*[value in latest selected text box] instead of 3+3+5

 

I am currently using this formula in the text of the total:

Sum(galleryItems.AllItems,Value(txtTotalValue.Text))

 

Hope someone has come across before, and thanks in advance!

 

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Anonymous ,

    Something strange here - it looks correct and I just named a gallery and text control the same as yours on my test app and got this

    WarrenBelz_0-1673859861108.png

    Is that Text control defaulted or input ?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz  ,

    The values are user input, thanks!

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Anonymous , 

    I see you have all that inside a container in the gallery and I suspect this is the issue. Try the field directly in the gallery.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fixed, thanks so much!

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard