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 of fields in a gal...
Power Apps
Unanswered

Sum of fields in a gallery returns blank, when the function returns the right number

(0) ShareShare
ReportReport
Posted on by 8

 

"Total: "&Text(Sum(Gallery.AllItems,TextInput),"#,##0")

 

Inside a Form's Card I have a Combo Box, where you can select multiple items, from another Sharepoint List (from the one the form is based on)
In the same Card Gallery, the Gallery is created in the following way:

 

 

AddColumns(
 ComboBox.SelectedItems,
 "Code Match",
 LookUp(
 'ComboBox Sharepoint List',
 'Name'.Value = Value,
 'Matching Code'.Value
 )
)

 

 

In the gallery I made a Text Input field, I created an Text Input Box, and next to the gallery I have a function to sum the text box in the gallery:

 

"Total: "&Text(Sum(Gallery4.AllItems,TextInput),"#,##0")

 

 

Which returns blank, while in the formula it gives me the correct value:

Koraomy_0-1703164340370.png

Koraomy_1-1703164394433.png

So the value I see in the app is blank from the sum function, but the function works properly it seems. Please help 🙂

 

On another note, I did a similar thing, but without the form and the gallery was based on Sharepoint. It was working as intended.

Categories:
  • eisuan Profile Picture
    146 on at

    @Koraomy 

    Try this code:

    "Total: "&Text(Sum(Gallery4.AllItems,TextInput.Text),"#,##0")
  • Koraomy Profile Picture
    8 on at

    This doesn't change anything unfortunately

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard