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 value in gallery
Power Apps
Answered

sum value in gallery

(1) ShareShare
ReportReport
Posted on by 418

Hello, what is the correct formula to make SUM in Gallery.. i have tried some formula below but got error..

 

Gallery name = Gallery2_1 (just return value for that row/item)

TextInput name to SUM = TextInput5_1 (error)

 

Sum(TextInput5_1)
Sum(Gallery2_1.AllItems, percentage )

twister_2-1624341366078.png

 

twister_1-1624341216084.png

 

Thanks

Categories:
I have the same question (0)
  • Moreshwar Profile Picture
    135 on at

    Hi,

     

    Try this: Sum(Gallery2_1.AllItems, Value(TextInput5_1.Text)). Value function will convert string to number.

  • twister Profile Picture
    418 on at

    have tried but got error..

     

    twister_0-1624342603744.png

     

  • Moreshwar Profile Picture
    135 on at

    Please make sure TextInput5_1 is there in Gallery. 

  • twister Profile Picture
    418 on at

    Yes... TextInput5_1 in the Gallery..

     

    twister_0-1624345232595.png

     

  • twister Profile Picture
    418 on at

    I dont why cannot do sum in Gallery itself..but if outside gallery its works..

     

    Inside Gallery:

    twister_0-1624412570509.png

     

    Outside Gallery:

    twister_1-1624412613758.png

     

  • twister Profile Picture
    418 on at

    anyone can advise on this problem?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @twister The AllItems property is not available from within the gallery. The better way would be to store the contents of the Gallery in a collection and use the values in the collection for the calculation.

  • twister Profile Picture
    418 on at

    any advise on doing this?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @twister What is the Items property of the gallery?

  • twister Profile Picture
    418 on at

    @CNTas below..

     

    twister_0-1624862999192.png

     

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