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 / Summing Values in a Ga...
Power Apps
Answered

Summing Values in a Gallery with New (Responsive) Modern Text

(0) ShareShare
ReportReport
Posted on by 1,302

Hi

 

I am having problems with New Modern Text input values in a Gallery.

 

The sequence is as follows :-

 

Read items from a Table in CDS into a Gallery.

 

Sum items from a column in the Gallery.  Get answer. Sum(galleryRows.AllItems,Value(TextColumn.Value))

 

Amend an item from the above column in the Gallery.

 

Press button to Sum up the (changed) column in the Gallery.  Sum(galleryRows.AllItems,Value(TextColumn.Value))

 

But although the value in a column has changed, the Sum stays the same !

 

All I am trying to do is emulate SUM(.....) in Excel.

 

What am I missing ?

 

Thanks

 

Nigel

Categories:
I have the same question (0)
  • JayMagness Profile Picture
    1,663 on at

    HI,

    try putting a Refresh( Dataset); Refresh(Gallery) before the text you have

  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    Amend an item from the above column in the Gallery. if you are updating the datasource with changes than Refresh( Dataset) when you update item.

     

    if you are not updating the datasource just making changes locally in powerapp. Than change your formula.

     Sum(galleryRows.AllItems,Value(TextColumn.Value)) . instead of Value(TextColumn.Value) give the control name where your value change is reflected Sum(galleryRows.AllItems,Value(textcontrol.text))

     

  • NPrice99 Profile Picture
    1,302 on at

    Hi @developerAJ 

     

    So moving on (Apologies to Matthew Devaney) I have now introduced containers and the modern TextInput controls:-

     

    NigelP_0-1690110888979.png

    I now want to Sum the Quantity column again.  But  Sum(gal_EditableTable.AllItems,TextInputQuantity.Value) gives me 156 (first value * number of Rows).

     

    So how do I now SumUp the values in the column "Quality" with the Responsive Container between gal_EditableTable and the Text values in the Row ?

     

    Thanks

     

    Nigel

  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    if you use container, you won't be able to get it.

    gallery will get only top-level control because you are storing the text control inside container it will not able to detect.

     

    workaround add a label outside container in gallery .Text : urmoderntext. you can hide this label. 

    for sum use this label

     

     

  • NPrice99 Profile Picture
    1,302 on at

    Thanks @developerAJ That was the conclusion I came to as well.  Thanks for confirming my fears.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard